class Pohoda::Parsers::Rdc::ItemType
Public Instance Methods
action_type()
click to toggle source
# File lib/pohoda/parsers/rdc/item_type.rb, line 7 def action_type at 'rdc:actionType' end
action_type_attributes()
click to toggle source
# File lib/pohoda/parsers/rdc/item_type.rb, line 11 def action_type_attributes attributes_at 'rdc:actionType' end
ext_id()
click to toggle source
# File lib/pohoda/parsers/rdc/item_type.rb, line 15 def ext_id at 'rdc:extId' end
ext_id_attributes()
click to toggle source
# File lib/pohoda/parsers/rdc/item_type.rb, line 19 def ext_id_attributes attributes_at 'rdc:extId' end
produced_item()
click to toggle source
# File lib/pohoda/parsers/rdc/item_type.rb, line 23 def produced_item array_of_at(String, ['rdc:producedItem', 'rdc:id']) end
to_h()
click to toggle source
# File lib/pohoda/parsers/rdc/item_type.rb, line 27 def to_h hash = {} hash[:attributes] = attributes hash[:action_type] = action_type if has? 'rdc:actionType' hash[:action_type_attributes] = action_type_attributes if has? 'rdc:actionType' hash[:ext_id] = ext_id if has? 'rdc:extId' hash[:ext_id_attributes] = ext_id_attributes if has? 'rdc:extId' hash[:produced_item] = produced_item if has? 'rdc:producedItem' hash end