class Pohoda::Parsers::Rdc::ProducedDetailsType
Public Instance Methods
action_type()
click to toggle source
# File lib/pohoda/parsers/rdc/produced_details_type.rb, line 31 def action_type at 'rdc:actionType' end
action_type_attributes()
click to toggle source
# File lib/pohoda/parsers/rdc/produced_details_type.rb, line 35 def action_type_attributes attributes_at 'rdc:actionType' end
code()
click to toggle source
# File lib/pohoda/parsers/rdc/produced_details_type.rb, line 23 def code at 'rdc:code' end
code_attributes()
click to toggle source
# File lib/pohoda/parsers/rdc/produced_details_type.rb, line 27 def code_attributes attributes_at 'rdc:code' end
ext_id()
click to toggle source
# File lib/pohoda/parsers/rdc/produced_details_type.rb, line 39 def ext_id submodel_at(Typ::ExtIdType, 'rdc:extId') end
id()
click to toggle source
# File lib/pohoda/parsers/rdc/produced_details_type.rb, line 7 def id at 'rdc:id' end
id_attributes()
click to toggle source
# File lib/pohoda/parsers/rdc/produced_details_type.rb, line 11 def id_attributes attributes_at 'rdc:id' end
item_details()
click to toggle source
# File lib/pohoda/parsers/rdc/produced_details_type.rb, line 43 def item_details array_of_at(Rdc::ItemType, ['rdc:itemDetails', 'rdc:item']) end
number()
click to toggle source
# File lib/pohoda/parsers/rdc/produced_details_type.rb, line 15 def number at 'rdc:number' end
number_attributes()
click to toggle source
# File lib/pohoda/parsers/rdc/produced_details_type.rb, line 19 def number_attributes attributes_at 'rdc:number' end
to_h()
click to toggle source
# File lib/pohoda/parsers/rdc/produced_details_type.rb, line 47 def to_h hash = {} hash[:attributes] = attributes hash[:id] = id if has? 'rdc:id' hash[:id_attributes] = id_attributes if has? 'rdc:id' hash[:number] = number if has? 'rdc:number' hash[:number_attributes] = number_attributes if has? 'rdc:number' hash[:code] = code if has? 'rdc:code' hash[:code_attributes] = code_attributes if has? 'rdc:code' 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.to_h if has? 'rdc:extId' hash[:item_details] = item_details.map(&:to_h) if has? 'rdc:itemDetails' hash end