Module: Fulfil
- Defined in:
- lib/fulfil/constants.rb,
lib/fulfil.rb,
lib/fulfil/base.rb,
lib/fulfil/product.rb,
lib/fulfil/request.rb,
lib/fulfil/version.rb,
lib/fulfil/errors/base_error.rb
Overview
All errors goes here.
Defined Under Namespace
Classes: AuthenticationError, Base, HostResolutionError, Product, Request, UnauthorizedError, UserError
Constant Summary collapse
- VERSION =
"0.0.2"
- BASE_URL =
"https://%{subdomain}.fulfil.io/api/v1/model/".freeze
- PRODUCT_PATH =
"product.product".freeze
Class Attribute Summary collapse
-
.authentication ⇒ Object
Returns the value of attribute authentication.
-
.base_url ⇒ Object
Returns the value of attribute base_url.
Class Method Summary collapse
Class Attribute Details
.authentication ⇒ Object
Returns the value of attribute authentication.
7 8 9 |
# File 'lib/fulfil.rb', line 7 def authentication @authentication end |
.base_url ⇒ Object
Returns the value of attribute base_url.
7 8 9 |
# File 'lib/fulfil.rb', line 7 def base_url @base_url end |
Class Method Details
.setup(subdomain, api_key) ⇒ Object
8 9 10 |
# File 'lib/fulfil.rb', line 8 def setup(subdomain,api_key) self.authentication = { subdomain: subdomain, api_key: api_key } end |