class MoneyS3::Parsers::MsgBanDoklType

Public Instance Methods

adresa() click to toggle source
# File lib/money_s3/parsers/msg_ban_dokl_type.rb, line 6
def adresa
  submodel_at(MessageType, 'Adresa')
end
to_h() click to toggle source
Calls superclass method MoneyS3::Parsers::MessageType#to_h
# File lib/money_s3/parsers/msg_ban_dokl_type.rb, line 18
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:adresa] = adresa.to_h if has? 'Adresa'
  hash[:ucet] = ucet.to_h if has? 'Ucet'
  hash[:uhrada] = uhrada.map(&:to_h) if has? 'Uhrada'

  hash
  super.merge(hash)
end
ucet() click to toggle source
# File lib/money_s3/parsers/msg_ban_dokl_type.rb, line 10
def ucet
  submodel_at(MessageType, 'Ucet')
end
uhrada() click to toggle source
# File lib/money_s3/parsers/msg_ban_dokl_type.rb, line 14
def uhrada
  array_of_at(MessageType, ['Uhrada'])
end