Class: RubyOmx::Request

Inherits:
Response show all
Defined in:
lib/ruby_omx/request.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Response

format, parse_xml

Methods inherited from Node

#accessors, #as_hash

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_xmlObject

Returns the value of attribute raw_xml.



19
20
21
# File 'lib/ruby_omx/request.rb', line 19

def raw_xml
  @raw_xml
end