class Pohoda::Parsers::Csh::CurrencyCashRegisterType

Public Instance Methods

currency() click to toggle source
# File lib/pohoda/parsers/csh/currency_cash_register_type.rb, line 7
def currency
  submodel_at(Typ::RefType, 'csh:currency')
end
rate() click to toggle source
# File lib/pohoda/parsers/csh/currency_cash_register_type.rb, line 11
def rate
  at 'csh:rate'
end
rate_attributes() click to toggle source
# File lib/pohoda/parsers/csh/currency_cash_register_type.rb, line 15
def rate_attributes
  attributes_at 'csh:rate'
end
to_h() click to toggle source
# File lib/pohoda/parsers/csh/currency_cash_register_type.rb, line 19
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:currency] = currency.to_h if has? 'csh:currency'
  hash[:rate] = rate if has? 'csh:rate'
  hash[:rate_attributes] = rate_attributes if has? 'csh:rate'

  hash
end