Class: RubyOmx::CustomItemInfoRequest
- Defined in:
- lib/ruby_omx/request/custom_item_info_request.rb
Instance Attribute Summary collapse
-
#attribute_group_id ⇒ Object
Returns the value of attribute attribute_group_id.
-
#item_code ⇒ Object
Returns the value of attribute item_code.
Attributes inherited from Request
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ CustomItemInfoRequest
constructor
A new instance of CustomItemInfoRequest.
Methods inherited from Response
Methods inherited from Node
Constructor Details
#initialize(attrs = {}) ⇒ CustomItemInfoRequest
Returns a new instance of CustomItemInfoRequest.
5 6 7 8 9 10 11 12 13 |
# File 'lib/ruby_omx/request/custom_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] ||= '2.00' self.udi_parameters << UDIParameter.new({:key=>'ItemCode', :value=>attrs[:item_code]}) self.udi_parameters << UDIParameter.new({:key=>'AttributeGroupID', :value=>(attrs[:attribute_group_id]||='All')}) end |
Instance Attribute Details
#attribute_group_id ⇒ Object
Returns the value of attribute attribute_group_id.
14 15 16 |
# File 'lib/ruby_omx/request/custom_item_info_request.rb', line 14 def attribute_group_id @attribute_group_id end |
#item_code ⇒ Object
Returns the value of attribute item_code.
14 15 16 |
# File 'lib/ruby_omx/request/custom_item_info_request.rb', line 14 def item_code @item_code end |