class MoneyS3::Parsers::MsgIntDoklType

Public Instance Methods

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

  hash[:adresa] = adresa.to_h if has? 'Adresa'
  hash[:polozka] = polozka.map(&:to_h) if has? 'Polozka'

  hash
  super.merge(hash)
end