class Pohoda::Parsers::Pre::PrevodkaItemType
Public Instance Methods
note()
click to toggle source
# File lib/pohoda/parsers/pre/prevodka_item_type.rb, line 19 def note at 'pre:note' end
note_attributes()
click to toggle source
# File lib/pohoda/parsers/pre/prevodka_item_type.rb, line 23 def note_attributes attributes_at 'pre:note' end
quantity()
click to toggle source
# File lib/pohoda/parsers/pre/prevodka_item_type.rb, line 7 def quantity at 'pre:quantity' end
quantity_attributes()
click to toggle source
# File lib/pohoda/parsers/pre/prevodka_item_type.rb, line 11 def quantity_attributes attributes_at 'pre:quantity' end
stock_item()
click to toggle source
# File lib/pohoda/parsers/pre/prevodka_item_type.rb, line 15 def stock_item submodel_at(Typ::StockItemType, 'pre:stockItem') end
to_h()
click to toggle source
# File lib/pohoda/parsers/pre/prevodka_item_type.rb, line 27 def to_h hash = {} hash[:attributes] = attributes hash[:quantity] = quantity if has? 'pre:quantity' hash[:quantity_attributes] = quantity_attributes if has? 'pre:quantity' hash[:stock_item] = stock_item.to_h if has? 'pre:stockItem' hash[:note] = note if has? 'pre:note' hash[:note_attributes] = note_attributes if has? 'pre:note' hash end