Class: Gilt::Client
- Inherits:
-
Weary::Client
- Object
- Weary::Client
- Gilt::Client
- Defined in:
- lib/gilt/client.rb,
lib/gilt/client/sales.rb,
lib/gilt/client/products.rb
Defined Under Namespace
Constant Summary collapse
- VERSION =
"v1"
- FORMAT =
"json"
- DOMAIN =
"https://api.gilt.com/#{VERSION}"
Instance Method Summary collapse
-
#initialize(apikey, affid = nil) ⇒ Client
constructor
A new instance of Client.
Constructor Details
#initialize(apikey, affid = nil) ⇒ Client
Returns a new instance of Client.
9 10 11 12 13 |
# File 'lib/gilt/client.rb', line 9 def initialize(apikey, affid=nil) @defaults = {} @defaults[:apikey] = apikey @defaults[:affid] = affid unless affid.nil? end |