Class: CamtParser::Format054::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/camt_parser/054/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(xml_data) ⇒ Base

Returns a new instance of Base.



6
7
8
9
10
11
# File 'lib/camt_parser/054/base.rb', line 6

def initialize(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

Instance Attribute Details

#group_headerObject (readonly)

Returns the value of attribute group_header.



4
5
6
# File 'lib/camt_parser/054/base.rb', line 4

def group_header
  @group_header
end

#notificationsObject (readonly)

Returns the value of attribute notifications.



4
5
6
# File 'lib/camt_parser/054/base.rb', line 4

def notifications
  @notifications
end