class Pohoda::Parsers::Bnk::BankType

Public Instance Methods

bank_detail() click to toggle source
# File lib/pohoda/parsers/bnk/bank_type.rb, line 11
def bank_detail
  array_of_at(Bnk::BankItemType, ['bnk:bankDetail', 'bnk:bankItem'])
end
bank_header() click to toggle source
# File lib/pohoda/parsers/bnk/bank_type.rb, line 7
def bank_header
  submodel_at(Bnk::BankHeaderType, 'bnk:bankHeader')
end
bank_summary() click to toggle source
# File lib/pohoda/parsers/bnk/bank_type.rb, line 15
def bank_summary
  submodel_at(Bnk::BankSummaryType, 'bnk:bankSummary')
end
to_h() click to toggle source
# File lib/pohoda/parsers/bnk/bank_type.rb, line 19
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:bank_header] = bank_header.to_h if has? 'bnk:bankHeader'
  hash[:bank_detail] = bank_detail.map(&:to_h) if has? 'bnk:bankDetail'
  hash[:bank_summary] = bank_summary.to_h if has? 'bnk:bankSummary'

  hash
end