Class: Gilt::Client

Inherits:
Weary::Client
  • Object
show all
Defined in:
lib/gilt/client.rb,
lib/gilt/client/sales.rb,
lib/gilt/client/products.rb

Direct Known Subclasses

Products, Sales

Defined Under Namespace

Classes: Products, Sales

Constant Summary collapse

VERSION =
"v1"
FORMAT =
"json"
DOMAIN =
"https://api.gilt.com/#{VERSION}"

Instance Method Summary collapse

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