Class: Document::Base

Inherits:
Treetop::Runtime::SyntaxNode
  • Object
show all
Defined in:
lib/mt940parser/node_extensions.rb

Instance Method Summary collapse

Instance Method Details

#to_hashObject



46
47
48
49
50
51
52
53
# File 'lib/mt940parser/node_extensions.rb', line 46

def to_hash
  {
    valor: valor.text_value,
    account_date: .text_value,
    type: type.val,
    amount: amount.val
  }
end