Class: AgentCooper::Shopper

Inherits:
Request
  • Object
show all
Defined in:
lib/agent_cooper/requests/shopper.rb

Constant Summary collapse

VERSION =
"745".freeze
HOST =
"open.api.ebay.com".freeze
PATH =
"/shopping".freeze
SITE_ID =
0.freeze
ENCODING =
"XML".freeze

Instance Method Summary collapse

Methods inherited from Request

#<<, #aget, #get, #parameters, #reset!

Constructor Details

#initializeShopper

Returns a new instance of Shopper.



10
11
12
13
14
15
16
17
18
19
20
# File 'lib/agent_cooper/requests/shopper.rb', line 10

def initialize
  self.host = HOST
  self.path = PATH

  self.default_parameters = {
    "APPID"            => app_id,
    "RESPONSEENCODING" => ENCODING,
    "VERSION"          => VERSION,
    "SITEID"           => SITE_ID
   }
end