Class: RubyOmx::Request
- Defined in:
- lib/ruby_omx/request.rb
Direct Known Subclasses
CancellationHistoryRequest, CustomItemInfoRequest, InventoryInfoRequest, ItemInfoRequest, ItemPriceUpdateRequest, ItemUpdateRequest, MemoSubmissionRequest, OrderInfoRequest, PurchaseOrderUpdateRequest, ReturnHistoryRequest, SupplierItemUpdateRequest, UDOARequest
Instance Attribute Summary collapse
-
#raw_xml ⇒ Object
Returns the value of attribute raw_xml.
Instance Method Summary collapse
-
#initialize(attrs = nil) ⇒ Request
constructor
A new instance of Request.
Methods inherited from Response
Methods inherited from Node
Constructor Details
#initialize(attrs = nil) ⇒ Request
Returns a new instance of Request.
12 13 14 15 16 17 |
# File 'lib/ruby_omx/request.rb', line 12 def initialize(attrs=nil) self.udi_parameters = [UDIParameter.new({:key=>'UDIAuthToken', :value=>attrs.delete(:udi_auth_token)})] self.udi_parameters << UDIParameter.new({:key=>'HTTPBizID', :value=>attrs.delete(:http_biz_id)}) super raw_xml = attrs[:raw_xml] ||= false end |
Instance Attribute Details
#raw_xml ⇒ Object
Returns the value of attribute raw_xml.
19 20 21 |
# File 'lib/ruby_omx/request.rb', line 19 def raw_xml @raw_xml end |