Class: CamtParser::BatchDetail

Inherits:
Object
  • Object
show all
Defined in:
lib/camt_parser/general/batch_detail.rb

Instance Method Summary collapse

Constructor Details

#initialize(xml_data) ⇒ BatchDetail

Returns a new instance of BatchDetail.


3
4
5
# File 'lib/camt_parser/general/batch_detail.rb', line 3

def initialize(xml_data)
  @xml_data = xml_data
end

Instance Method Details

#msg_idObject

may be missing


11
12
13
# File 'lib/camt_parser/general/batch_detail.rb', line 11

def msg_id # may be missing
  @msg_id ||= @xml_data.xpath('MsgId/text()').text
end

#number_of_transactionsObject


15
16
17
# File 'lib/camt_parser/general/batch_detail.rb', line 15

def number_of_transactions
  @number_of_transactions ||= @xml_data.xpath('NbOfTxs/text()').text
end

#payment_information_identificationObject


7
8
9
# File 'lib/camt_parser/general/batch_detail.rb', line 7

def payment_information_identification
  @payment_information_identification ||= @xml_data.xpath('PmtInfId/text()').text
end