class MoneyS3::Parsers::KurzRozd

Public Instance Methods

castka() click to toggle source
# File lib/money_s3/parsers/kurz_rozd.rb, line 22
def castka
  at 'Castka'
end
castka_attributes() click to toggle source
# File lib/money_s3/parsers/kurz_rozd.rb, line 26
def castka_attributes
  attributes_at 'Castka'
end
doklad() click to toggle source
# File lib/money_s3/parsers/kurz_rozd.rb, line 38
def doklad
  submodel_at(DoklRefType, 'Doklad')
end
kr_poradi() click to toggle source
# File lib/money_s3/parsers/kurz_rozd.rb, line 30
def kr_poradi
  at 'KRPoradi'
end
kr_poradi_attributes() click to toggle source
# File lib/money_s3/parsers/kurz_rozd.rb, line 34
def kr_poradi_attributes
  attributes_at 'KRPoradi'
end
preceneni() click to toggle source
# File lib/money_s3/parsers/kurz_rozd.rb, line 14
def preceneni
  at 'Preceneni'
end
preceneni_attributes() click to toggle source
# File lib/money_s3/parsers/kurz_rozd.rb, line 18
def preceneni_attributes
  attributes_at 'Preceneni'
end
to_h() click to toggle source
# File lib/money_s3/parsers/kurz_rozd.rb, line 42
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:typ] = typ if has? 'Typ'
  hash[:typ_attributes] = typ_attributes if has? 'Typ'
  hash[:preceneni] = preceneni if has? 'Preceneni'
  hash[:preceneni_attributes] = preceneni_attributes if has? 'Preceneni'
  hash[:castka] = castka if has? 'Castka'
  hash[:castka_attributes] = castka_attributes if has? 'Castka'
  hash[:kr_poradi] = kr_poradi if has? 'KRPoradi'
  hash[:kr_poradi_attributes] = kr_poradi_attributes if has? 'KRPoradi'
  hash[:doklad] = doklad.to_h if has? 'Doklad'

  hash
end
typ() click to toggle source
# File lib/money_s3/parsers/kurz_rozd.rb, line 6
def typ
  at 'Typ'
end
typ_attributes() click to toggle source
# File lib/money_s3/parsers/kurz_rozd.rb, line 10
def typ_attributes
  attributes_at 'Typ'
end