Class: Rakumarket::ItemLookupClient

Inherits:
Client show all
Defined in:
lib/rakumarket/client.rb

Constant Summary collapse

OPERATION =
"ItemCodeSearch"
VERSION =
"2010-08-05"

Instance Attribute Summary

Attributes inherited from Client

#developer_id

Instance Method Summary collapse

Methods inherited from Client

#initialize, request

Methods included from SpitterMethods

extended, #inspect_options, #parameter, #parameters, #parse, #rules

Constructor Details

This class inherits a constructor from Rakumarket::Client

Instance Method Details

#requestObject



144
145
146
147
148
# File 'lib/rakumarket/client.rb', line 144

def request
  response = super
  response = response.dup['Body']['ItemCodeSearch']['Items']['Item'].first if response['Body'] && response['Body']['ItemCodeSearch']
  Item.parse(response)
end