class MoneyS3::Parsers::KurzListekType

Public Instance Methods

banka() click to toggle source
# File lib/money_s3/parsers/kurz_listek_type.rb, line 6
def banka
  at 'Banka'
end
banka_attributes() click to toggle source
# File lib/money_s3/parsers/kurz_listek_type.rb, line 10
def banka_attributes
  attributes_at 'Banka'
end
datum() click to toggle source
# File lib/money_s3/parsers/kurz_listek_type.rb, line 22
def datum
  at 'Datum'
end
datum_attributes() click to toggle source
# File lib/money_s3/parsers/kurz_listek_type.rb, line 26
def datum_attributes
  attributes_at 'Datum'
end
por_cislo() click to toggle source
# File lib/money_s3/parsers/kurz_listek_type.rb, line 14
def por_cislo
  at 'PorCislo'
end
por_cislo_attributes() click to toggle source
# File lib/money_s3/parsers/kurz_listek_type.rb, line 18
def por_cislo_attributes
  attributes_at 'PorCislo'
end
seznam_kurzu() click to toggle source
# File lib/money_s3/parsers/kurz_listek_type.rb, line 30
def seznam_kurzu
  array_of_at(KurzType, ['SeznamKurzu', 'Kurz'])
end
to_h() click to toggle source
# File lib/money_s3/parsers/kurz_listek_type.rb, line 34
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:banka] = banka if has? 'Banka'
  hash[:banka_attributes] = banka_attributes if has? 'Banka'
  hash[:por_cislo] = por_cislo if has? 'PorCislo'
  hash[:por_cislo_attributes] = por_cislo_attributes if has? 'PorCislo'
  hash[:datum] = datum if has? 'Datum'
  hash[:datum_attributes] = datum_attributes if has? 'Datum'
  hash[:seznam_kurzu] = seznam_kurzu.map(&:to_h) if has? 'SeznamKurzu'

  hash
end