module LightspeedRestaurantClient
Constants
- VERSION
Attributes
api_token[RW]
base_uri[RW]
logger[RW]
Public Class Methods
default_configuration()
click to toggle source
# File lib/lightspeed_restaurant.rb, line 27 def default_configuration Configuration.new(@api_token, @base_uri) end
delete(path, query = {}, configuration = nil)
click to toggle source
# File lib/lightspeed_restaurant.rb, line 43 def delete(path, query = {}, configuration = nil) request(path, {}, query, configuration).perform(method: :delete) end
get(path, query = {}, configuration = nil)
click to toggle source
# File lib/lightspeed_restaurant.rb, line 31 def get(path, query = {}, configuration = nil) request(path, {}, query, configuration).perform(method: :get) end
post(path, body = {}, query = {}, configuration = nil)
click to toggle source
# File lib/lightspeed_restaurant.rb, line 35 def post(path, body = {}, query = {}, configuration = nil) request(path, body, query, configuration).perform(method: :post) end
put(path, body = {}, query = {}, configuration = nil)
click to toggle source
# File lib/lightspeed_restaurant.rb, line 39 def put(path, body = {}, query = {}, configuration = nil) request(path, body, query, configuration).perform(method: :put) end
Private Class Methods
request(path, body, query, configuration = nil)
click to toggle source
# File lib/lightspeed_restaurant.rb, line 49 def request(path, body, query, configuration = nil) configuration ||= default_configuration Request.new(configuration.base_uri, path, configuration.api_token, body, query, @logger) end