Class: MoneyS3::Parsers::MsgBanDoklType

Inherits:
MessageType show all
Includes:
ParserCore::BaseParser
Defined in:
lib/money_s3/parsers/msg_ban_dokl_type.rb

Instance Method Summary collapse

Methods inherited from MessageType

#data, #data_attributes, #error_info, #reference, #status, #status_attributes

Instance Method Details

#adresaObject



6
7
8
# File 'lib/money_s3/parsers/msg_ban_dokl_type.rb', line 6

def adresa
  submodel_at(MessageType, 'Adresa')
end

#to_hObject



18
19
20
21
22
23
24
25
26
27
28
# 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

#ucetObject



10
11
12
# File 'lib/money_s3/parsers/msg_ban_dokl_type.rb', line 10

def ucet
  submodel_at(MessageType, 'Ucet')
end

#uhradaObject



14
15
16
# File 'lib/money_s3/parsers/msg_ban_dokl_type.rb', line 14

def uhrada
  array_of_at(MessageType, ['Uhrada'])
end