Class: CamtParser::BatchDetail
- Inherits:
-
Object
- Object
- CamtParser::BatchDetail
- Defined in:
- lib/camt_parser/general/batch_detail.rb
Instance Attribute Summary collapse
-
#xml_data ⇒ Object
readonly
Returns the value of attribute xml_data.
Instance Method Summary collapse
-
#initialize(xml_data) ⇒ BatchDetail
constructor
A new instance of BatchDetail.
-
#msg_id ⇒ Object
may be missing.
- #number_of_transactions ⇒ Object
- #payment_information_identification ⇒ Object
Constructor Details
#initialize(xml_data) ⇒ BatchDetail
Returns a new instance of BatchDetail.
6 7 8 |
# File 'lib/camt_parser/general/batch_detail.rb', line 6 def initialize(xml_data) @xml_data = xml_data end |
Instance Attribute Details
#xml_data ⇒ Object (readonly)
Returns the value of attribute xml_data.
4 5 6 |
# File 'lib/camt_parser/general/batch_detail.rb', line 4 def xml_data @xml_data end |
Instance Method Details
#msg_id ⇒ Object
may be missing
14 15 16 |
# File 'lib/camt_parser/general/batch_detail.rb', line 14 def msg_id # may be missing @msg_id ||= xml_data.xpath('MsgId/text()').text end |
#number_of_transactions ⇒ Object
18 19 20 |
# File 'lib/camt_parser/general/batch_detail.rb', line 18 def number_of_transactions @number_of_transactions ||= xml_data.xpath('NbOfTxs/text()').text end |
#payment_information_identification ⇒ Object
10 11 12 |
# File 'lib/camt_parser/general/batch_detail.rb', line 10 def payment_information_identification @payment_information_identification ||= xml_data.xpath('PmtInfId/text()').text end |