class Pohoda::Parsers::Typ::TypeCurrencyForeign
Public Instance Methods
amount()
click to toggle source
# File lib/pohoda/parsers/typ/type_currency_foreign.rb, line 19 def amount at 'typ:amount' end
amount_attributes()
click to toggle source
# File lib/pohoda/parsers/typ/type_currency_foreign.rb, line 23 def amount_attributes attributes_at 'typ:amount' end
currency()
click to toggle source
# File lib/pohoda/parsers/typ/type_currency_foreign.rb, line 7 def currency submodel_at(Typ::RefType, 'typ:currency') end
price_sum()
click to toggle source
# File lib/pohoda/parsers/typ/type_currency_foreign.rb, line 27 def price_sum at 'typ:priceSum' end
price_sum_attributes()
click to toggle source
# File lib/pohoda/parsers/typ/type_currency_foreign.rb, line 31 def price_sum_attributes attributes_at 'typ:priceSum' end
rate()
click to toggle source
# File lib/pohoda/parsers/typ/type_currency_foreign.rb, line 11 def rate at 'typ:rate' end
rate_attributes()
click to toggle source
# File lib/pohoda/parsers/typ/type_currency_foreign.rb, line 15 def rate_attributes attributes_at 'typ:rate' end
round()
click to toggle source
# File lib/pohoda/parsers/typ/type_currency_foreign.rb, line 35 def round submodel_at(Typ::TypeRound, 'typ:round') end
to_h()
click to toggle source
# File lib/pohoda/parsers/typ/type_currency_foreign.rb, line 39 def to_h hash = {} hash[:attributes] = attributes hash[:currency] = currency.to_h if has? 'typ:currency' hash[:rate] = rate if has? 'typ:rate' hash[:rate_attributes] = rate_attributes if has? 'typ:rate' hash[:amount] = amount if has? 'typ:amount' hash[:amount_attributes] = amount_attributes if has? 'typ:amount' hash[:price_sum] = price_sum if has? 'typ:priceSum' hash[:price_sum_attributes] = price_sum_attributes if has? 'typ:priceSum' hash[:round] = round.to_h if has? 'typ:round' hash end