forked from mllocs/zoomus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
zoomus.rb
40 lines (34 loc) · 872 Bytes
/
zoomus.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
$:.unshift File.dirname(__FILE__)
require 'zoomus/utils'
require 'zoomus/actions/user'
require 'zoomus/actions/meeting'
require 'zoomus/actions/metrics'
require 'zoomus/actions/report'
require 'zoomus/actions/webinar'
require 'zoomus/actions/recording'
require 'zoomus/client'
require 'zoomus/error'
module Zoomus
class << self
attr_accessor :configuration
def new
@configuration ||= Configuration.new
Zoomus::Client.new(
:api_key => @configuration.api_key,
:api_secret => @configuration.api_secret,
:timeout => @configuration.timeout
)
end
def configure
@configuration ||= Configuration.new
yield(@configuration)
end
end
class Configuration
attr_accessor :api_key, :api_secret, :timeout
def initialize
@api_key = @api_secret = 'xxx'
@timeout = 15
end
end
end