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_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, InvalidRequestError, LightspeedRestaurantClientError, NotFoundError, Receipt, Request, UnauthorizedError
Constant Summary
collapse
- VERSION =
'1.0.0'.freeze
Class Attribute Summary collapse
Class Method Summary
collapse
Class Attribute Details
.api_token ⇒ Object
Returns the value of attribute api_token.
17
18
19
|
# File 'lib/lightspeed_restaurant.rb', line 17
def api_token
@api_token
end
|
.base_uri ⇒ Object
Returns the value of attribute base_uri.
17
18
19
|
# File 'lib/lightspeed_restaurant.rb', line 17
def base_uri
@base_uri
end
|
Class Method Details
.delete(path, body = {}, query = {}) ⇒ Object
31
32
33
|
# File 'lib/lightspeed_restaurant.rb', line 31
def delete(path, body = {}, query = {})
request(path, body, query).perform(method: :delete)
end
|
.get(path, body = {}, query = {}) ⇒ Object
19
20
21
|
# File 'lib/lightspeed_restaurant.rb', line 19
def get(path, body = {}, query = {})
request(path, body, query).perform(method: :get)
end
|
.post(path, body = {}, query = {}) ⇒ Object
23
24
25
|
# File 'lib/lightspeed_restaurant.rb', line 23
def post(path, body = {}, query = {})
request(path, body, query).perform(method: :post)
end
|
.put(path, body = {}, query = {}) ⇒ Object
27
28
29
|
# File 'lib/lightspeed_restaurant.rb', line 27
def put(path, body = {}, query = {})
request(path, body, query).perform(method: :put)
end
|