class EbayTrading::Requests::Abstract
Attributes¶ ↑
value_array_node :detail_levels, 'DetailLevel', :default_value => [] text_node :error_language, 'ErrorLanguage', :optional => true text_node :message_id, 'MessageID', :optional => true text_node :version, 'Version', :optional => true text_node :end_user_ip, 'EndUserIP', :optional => true object_node :requester_credentials, 'RequesterCredentials', :class => XMLRequesterCredentials, :optional => true text_node :error_handling, 'ErrorHandling', :optional => true text_node :invocation_id, 'InvocationID', :optional => true text_node :output_selector, 'OutputSelector', :optional => true text_node :warning_level, 'WarningLevel', :optional => true object_node :bot_block, 'BotBlock', :class => BotBlockRequest, :optional => true
Public Instance Methods
detail_level()
click to toggle source
eBay specifies the detail level as a collection. The usual case is to use only a single detail level, so it is more appropriate to add an accessor for the normal case. Reads the first detail level from the detail_levels Array.
# File lib/ebay_trading/requests/abstract.rb, line 37 def detail_level @detail_levels.first end
detail_level=(value)
click to toggle source
Overwrites the details_levels Array with a new Array containing only the value passed in as an argument
# File lib/ebay_trading/requests/abstract.rb, line 43 def detail_level=(value) @detail_levels = Array(value) end
requester_credentials()
click to toggle source
Add credentials to all requests
# File lib/ebay_trading/requests/abstract.rb, line 48 def requester_credentials XMLRequesterCredentials.new(:ebay_auth_token => auth_token) end