Class: CamtParser::Format053::Base
- Inherits:
-
Object
- Object
- CamtParser::Format053::Base
- Defined in:
- lib/camt_parser/053/base.rb
Instance Attribute Summary collapse
-
#group_header ⇒ Object
readonly
Returns the value of attribute group_header.
-
#statements ⇒ Object
readonly
Returns the value of attribute statements.
Instance Method Summary collapse
-
#initialize(xml_data) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(xml_data) ⇒ Base
Returns a new instance of Base.
6 7 8 9 10 11 |
# File 'lib/camt_parser/053/base.rb', line 6 def initialize(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_header ⇒ Object (readonly)
Returns the value of attribute group_header.
4 5 6 |
# File 'lib/camt_parser/053/base.rb', line 4 def group_header @group_header end |
#statements ⇒ Object (readonly)
Returns the value of attribute statements.
4 5 6 |
# File 'lib/camt_parser/053/base.rb', line 4 def statements @statements end |