Method: Booker::Client#initialize

Defined in:
lib/booker.rb

#initialize(key, secret, options = {}) ⇒ Client

Returns a new instance of Client.


13
14
15
16
17
18
19
# File 'lib/booker.rb', line 13

def initialize(key, secret, options = {})
  @production = options.fetch(:production) { false }
  @key = key
  @secret = secret
  set_access_token!
  set_server_time_offset!
end