Class: SepaFileParser::Camt053::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/sepa_file_parser/camt053/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(xml_data) ⇒ Base

Returns a new instance of Base.



8
9
10
11
12
13
14
15
# File 'lib/sepa_file_parser/camt053/base.rb', line 8

def initialize(xml_data)
  @xml_data = xml_data

  grphdr = xml_data.xpath('BkToCstmrStmt/GrpHdr')
  @group_header = GroupHeader.new(grphdr)
  statements = xml_data.xpath('BkToCstmrStmt/Stmt')
  @statements = statements.map{ |x| Statement.new(x) }
end

Instance Attribute Details

#group_headerObject (readonly)

Returns the value of attribute group_header.



6
7
8
# File 'lib/sepa_file_parser/camt053/base.rb', line 6

def group_header
  @group_header
end

#statementsObject (readonly)

Returns the value of attribute statements.



6
7
8
# File 'lib/sepa_file_parser/camt053/base.rb', line 6

def statements
  @statements
end

#xml_dataObject (readonly)

Returns the value of attribute xml_data.



6
7
8
# File 'lib/sepa_file_parser/camt053/base.rb', line 6

def xml_data
  @xml_data
end