class Pohoda::Parsers::Idp::StockItemType3
Public Instance Methods
currency()
click to toggle source
# File lib/pohoda/parsers/idp/stock_item_type3.rb, line 59 def currency submodel_at(Typ::RefType, 'idp:currency') end
discount_percentage()
click to toggle source
# File lib/pohoda/parsers/idp/stock_item_type3.rb, line 43 def discount_percentage at 'idp:discountPercentage' end
discount_percentage_attributes()
click to toggle source
# File lib/pohoda/parsers/idp/stock_item_type3.rb, line 47 def discount_percentage_attributes attributes_at 'idp:discountPercentage' end
id()
click to toggle source
# File lib/pohoda/parsers/idp/stock_item_type3.rb, line 7 def id at 'idp:id' end
id_attributes()
click to toggle source
# File lib/pohoda/parsers/idp/stock_item_type3.rb, line 11 def id_attributes attributes_at 'idp:id' end
ids()
click to toggle source
# File lib/pohoda/parsers/idp/stock_item_type3.rb, line 15 def ids at 'idp:ids' end
ids_attributes()
click to toggle source
# File lib/pohoda/parsers/idp/stock_item_type3.rb, line 19 def ids_attributes attributes_at 'idp:ids' end
individual_price()
click to toggle source
# File lib/pohoda/parsers/idp/stock_item_type3.rb, line 51 def individual_price at 'idp:individualPrice' end
individual_price_attributes()
click to toggle source
# File lib/pohoda/parsers/idp/stock_item_type3.rb, line 55 def individual_price_attributes attributes_at 'idp:individualPrice' end
name()
click to toggle source
# File lib/pohoda/parsers/idp/stock_item_type3.rb, line 23 def name at 'idp:name' end
name_attributes()
click to toggle source
# File lib/pohoda/parsers/idp/stock_item_type3.rb, line 27 def name_attributes attributes_at 'idp:name' end
pay_vat()
click to toggle source
# File lib/pohoda/parsers/idp/stock_item_type3.rb, line 63 def pay_vat at 'idp:payVAT' end
pay_vat_attributes()
click to toggle source
# File lib/pohoda/parsers/idp/stock_item_type3.rb, line 67 def pay_vat_attributes attributes_at 'idp:payVAT' end
price()
click to toggle source
# File lib/pohoda/parsers/idp/stock_item_type3.rb, line 35 def price at 'idp:price' end
price_attributes()
click to toggle source
# File lib/pohoda/parsers/idp/stock_item_type3.rb, line 39 def price_attributes attributes_at 'idp:price' end
storage()
click to toggle source
# File lib/pohoda/parsers/idp/stock_item_type3.rb, line 31 def storage submodel_at(Typ::RefTypeStorage, 'idp:storage') end
to_h()
click to toggle source
# File lib/pohoda/parsers/idp/stock_item_type3.rb, line 71 def to_h hash = {} hash[:attributes] = attributes hash[:id] = id if has? 'idp:id' hash[:id_attributes] = id_attributes if has? 'idp:id' hash[:ids] = ids if has? 'idp:ids' hash[:ids_attributes] = ids_attributes if has? 'idp:ids' hash[:name] = name if has? 'idp:name' hash[:name_attributes] = name_attributes if has? 'idp:name' hash[:storage] = storage.to_h if has? 'idp:storage' hash[:price] = price if has? 'idp:price' hash[:price_attributes] = price_attributes if has? 'idp:price' hash[:discount_percentage] = discount_percentage if has? 'idp:discountPercentage' hash[:discount_percentage_attributes] = discount_percentage_attributes if has? 'idp:discountPercentage' hash[:individual_price] = individual_price if has? 'idp:individualPrice' hash[:individual_price_attributes] = individual_price_attributes if has? 'idp:individualPrice' hash[:currency] = currency.to_h if has? 'idp:currency' hash[:pay_vat] = pay_vat if has? 'idp:payVAT' hash[:pay_vat_attributes] = pay_vat_attributes if has? 'idp:payVAT' hash end