Module: LightspeedRestaurantClient

Defined in:
lib/lightspeed_restaurant.rb,
lib/lightspeed_restaurant/base.rb,
lib/lightspeed_restaurant/company.rb,
lib/lightspeed_restaurant/receipt.rb,
lib/lightspeed_restaurant/request.rb,
lib/lightspeed_restaurant/version.rb,
lib/lightspeed_restaurant/customer.rb,
lib/lightspeed_restaurant/operations/find.rb,
lib/lightspeed_restaurant/operations/list.rb,
lib/lightspeed_restaurant/operations/save.rb,
lib/lightspeed_restaurant/errors/api_error.rb,
lib/lightspeed_restaurant/operations/create.rb,
lib/lightspeed_restaurant/operations/update.rb,
lib/lightspeed_restaurant/operations/destroy.rb,
lib/lightspeed_restaurant/customer_loyalty_card.rb,
lib/lightspeed_restaurant/customer_credit_change.rb,
lib/lightspeed_restaurant/errors/not_found_error.rb,
lib/lightspeed_restaurant/errors/unauthorized_error.rb,
lib/lightspeed_restaurant/errors/authentication_error.rb,
lib/lightspeed_restaurant/errors/invalid_request_error.rb,
lib/lightspeed_restaurant/errors/lightspeed_restaurant_error.rb

Defined Under Namespace

Modules: Operations Classes: APIError, AuthenticationError, Base, Company, Customer, CustomerCreditChange, CustomerLoyaltyCard, InvalidRequestError, LightspeedRestaurantClientError, NotFoundError, Receipt, Request, UnauthorizedError

Constant Summary collapse

VERSION =
'1.1.2'.freeze

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.api_tokenObject

Returns the value of attribute api_token.



18
19
20
# File 'lib/lightspeed_restaurant.rb', line 18

def api_token
  @api_token
end

.base_uriObject

Returns the value of attribute base_uri.



18
19
20
# File 'lib/lightspeed_restaurant.rb', line 18

def base_uri
  @base_uri
end

Class Method Details

.delete(path, body = {}, query = {}) ⇒ Object



32
33
34
# File 'lib/lightspeed_restaurant.rb', line 32

def delete(path, body = {}, query = {})
  request(path, body, query).perform(method: :delete)
end

.get(path, body = {}, query = {}) ⇒ Object



20
21
22
# File 'lib/lightspeed_restaurant.rb', line 20

def get(path, body = {}, query = {})
  request(path, body, query).perform(method: :get)
end

.post(path, body = {}, query = {}) ⇒ Object



24
25
26
# File 'lib/lightspeed_restaurant.rb', line 24

def post(path, body = {}, query = {})
  request(path, body, query).perform(method: :post)
end

.put(path, body = {}, query = {}) ⇒ Object



28
29
30
# File 'lib/lightspeed_restaurant.rb', line 28

def put(path, body = {}, query = {})
  request(path, body, query).perform(method: :put)
end