class Pohoda::Parsers::Acp::DefaultPriceStockType
Public Instance Methods
foreign_currency()
click to toggle source
# File lib/pohoda/parsers/acp/default_price_stock_type.rb, line 23 def foreign_currency submodel_at(Acp::TypeAcpCurrencyForeign, 'acp:foreignCurrency') end
pay_vat()
click to toggle source
# File lib/pohoda/parsers/acp/default_price_stock_type.rb, line 15 def pay_vat at 'acp:payVAT' end
pay_vat_attributes()
click to toggle source
# File lib/pohoda/parsers/acp/default_price_stock_type.rb, line 19 def pay_vat_attributes attributes_at 'acp:payVAT' end
price()
click to toggle source
# File lib/pohoda/parsers/acp/default_price_stock_type.rb, line 7 def price at 'acp:price' end
price_attributes()
click to toggle source
# File lib/pohoda/parsers/acp/default_price_stock_type.rb, line 11 def price_attributes attributes_at 'acp:price' end
to_h()
click to toggle source
# File lib/pohoda/parsers/acp/default_price_stock_type.rb, line 27 def to_h hash = {} hash[:attributes] = attributes hash[:price] = price if has? 'acp:price' hash[:price_attributes] = price_attributes if has? 'acp:price' hash[:pay_vat] = pay_vat if has? 'acp:payVAT' hash[:pay_vat_attributes] = pay_vat_attributes if has? 'acp:payVAT' hash[:foreign_currency] = foreign_currency.to_h if has? 'acp:foreignCurrency' hash end