class CamtParser::Format054::Base

Attributes

group_header[R]
notifications[R]
xml_data[R]

Public Class Methods

new(xml_data) click to toggle source
# File lib/camt_parser/054/base.rb, line 6
def initialize(xml_data)
  @xml_data = xml_data

  grphdr = xml_data.xpath('BkToCstmrDbtCdtNtfctn/GrpHdr')
  @group_header = GroupHeader.new(grphdr)
  notifications = xml_data.xpath('BkToCstmrDbtCdtNtfctn/Ntfctn')
  @notifications = notifications.map{ |x| Notification.new(x) }
end