Class: CamtParser::Format052::Base
- Inherits:
-
Object
- Object
- CamtParser::Format052::Base
- Defined in:
- lib/camt_parser/052/base.rb
Instance Attribute Summary collapse
-
#group_header ⇒ Object
readonly
Returns the value of attribute group_header.
-
#reports ⇒ Object
readonly
Returns the value of attribute reports.
-
#xml_data ⇒ Object
readonly
Returns the value of attribute xml_data.
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 12 13 |
# File 'lib/camt_parser/052/base.rb', line 6 def initialize(xml_data) @xml_data = xml_data # BkToCstmrAccptRpt = Bank to Customer Account Report grphdr = xml_data.xpath('BkToCstmrAcctRpt/GrpHdr') @group_header = CamtParser::GroupHeader.new(grphdr) reports = xml_data.xpath('BkToCstmrAcctRpt/Rpt') @reports = reports.map{ |x| Report.new(x) } end |
Instance Attribute Details
#group_header ⇒ Object (readonly)
Returns the value of attribute group_header.
4 5 6 |
# File 'lib/camt_parser/052/base.rb', line 4 def group_header @group_header end |
#reports ⇒ Object (readonly)
Returns the value of attribute reports.
4 5 6 |
# File 'lib/camt_parser/052/base.rb', line 4 def reports @reports end |
#xml_data ⇒ Object (readonly)
Returns the value of attribute xml_data.
4 5 6 |
# File 'lib/camt_parser/052/base.rb', line 4 def xml_data @xml_data end |