class Pohoda::Parsers::Sup::SupplierType
Public Instance Methods
stock_item()
click to toggle source
# File lib/pohoda/parsers/sup/supplier_type.rb, line 7 def stock_item submodel_at(Typ::StockItemType, 'sup:stockItem') end
suppliers()
click to toggle source
# File lib/pohoda/parsers/sup/supplier_type.rb, line 11 def suppliers at 'sup:suppliers' end
suppliers_attributes()
click to toggle source
# File lib/pohoda/parsers/sup/supplier_type.rb, line 15 def suppliers_attributes attributes_at 'sup:suppliers' end
to_h()
click to toggle source
# File lib/pohoda/parsers/sup/supplier_type.rb, line 19 def to_h hash = {} hash[:attributes] = attributes hash[:stock_item] = stock_item.to_h if has? 'sup:stockItem' hash[:suppliers] = suppliers if has? 'sup:suppliers' hash[:suppliers_attributes] = suppliers_attributes if has? 'sup:suppliers' hash end