class MoneyS3::Parsers::NepPlatbaType

Public Instance Methods

castka() click to toggle source
# File lib/money_s3/parsers/nep_platba_type.rb, line 18
def castka
  at 'Castka'
end
castka_attributes() click to toggle source
# File lib/money_s3/parsers/nep_platba_type.rb, line 22
def castka_attributes
  attributes_at 'Castka'
end
mnozstvi_mj() click to toggle source
# File lib/money_s3/parsers/nep_platba_type.rb, line 10
def mnozstvi_mj
  at 'MnozstviMJ'
end
mnozstvi_mj_attributes() click to toggle source
# File lib/money_s3/parsers/nep_platba_type.rb, line 14
def mnozstvi_mj_attributes
  attributes_at 'MnozstviMJ'
end
platidlo() click to toggle source
# File lib/money_s3/parsers/nep_platba_type.rb, line 6
def platidlo
  submodel_at(NepPlatidloType, 'Platidlo')
end
to_h() click to toggle source
# File lib/money_s3/parsers/nep_platba_type.rb, line 26
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:platidlo] = platidlo.to_h if has? 'Platidlo'
  hash[:mnozstvi_mj] = mnozstvi_mj if has? 'MnozstviMJ'
  hash[:mnozstvi_mj_attributes] = mnozstvi_mj_attributes if has? 'MnozstviMJ'
  hash[:castka] = castka if has? 'Castka'
  hash[:castka_attributes] = castka_attributes if has? 'Castka'

  hash
end