class Pohoda::Parsers::Bka::CurrencyBankAccountType

Public Instance Methods

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

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

  hash
end