Class: QueueIt::Api::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/queue_it/api/client.rb

Constant Summary collapse

JSON_FORMAT =
"application/json".freeze
ENDPOINT_URL =
URI("https://api2.queue-it.net/2_0_beta/event").freeze

Instance Method Summary collapse

Constructor Details

#initialize(api_key: nil, debug: false) ⇒ Client

Returns a new instance of Client.



13
14
15
16
# File 'lib/queue_it/api/client.rb', line 13

def initialize(api_key: nil, debug: false)
  self.api_key = api_key
  self.debug   = debug
end

Instance Method Details

#put(path, body) ⇒ Object



18
19
20
# File 'lib/queue_it/api/client.rb', line 18

def put(path, body)
  connection.put(path, body)
end