Class: RubyOmx::ItemInfoRequest
- Defined in:
- lib/ruby_omx/request/item_info_request.rb
Instance Attribute Summary collapse
-
#item_code ⇒ Object
Returns the value of attribute item_code.
Attributes inherited from Request
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ ItemInfoRequest
constructor
A new instance of ItemInfoRequest.
Methods inherited from Response
Methods inherited from Node
Constructor Details
#initialize(attrs = {}) ⇒ ItemInfoRequest
Returns a new instance of ItemInfoRequest.
5 6 7 8 9 10 11 |
# File 'lib/ruby_omx/request/item_info_request.rb', line 5 def initialize(attrs={}) return super unless attrs.any? raise MissingRequestOptions if attrs[:item_code].nil? super self.version = attrs[:version] ||= '1.00' self.udi_parameters << UDIParameter.new({:key=>'ItemCode', :value=>attrs[:item_code]}) end |
Instance Attribute Details
#item_code ⇒ Object
Returns the value of attribute item_code.
13 14 15 |
# File 'lib/ruby_omx/request/item_info_request.rb', line 13 def item_code @item_code end |