Class Ebay::Requests::Abstract
In: lib/ebay/requests/abstract.rb
Parent: Base

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

Methods

Included Modules

XML::Mapping Initializer

Public Instance methods

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.

[Source]

    # File lib/ebay/requests/abstract.rb, line 37
37:       def detail_level
38:         @detail_levels.first
39:       end

Overwrites the details_levels Array with a new Array containing only the value passed in as an argument

[Source]

    # File lib/ebay/requests/abstract.rb, line 43
43:       def detail_level=(value)
44:         @detail_levels = Array(value)
45:       end

[Validate]