class CamtParser::Creditor
Public Class Methods
new(xml_data)
click to toggle source
# File lib/camt_parser/general/creditor.rb, line 3 def initialize(xml_data) @xml_data = xml_data end
Public Instance Methods
bank_name()
click to toggle source
# File lib/camt_parser/general/creditor.rb, line 19 def bank_name @bank_name ||= @xml_data.xpath('RltdAgts/CdtrAgt/FinInstnId/Nm/text()').text end
bic()
click to toggle source
# File lib/camt_parser/general/creditor.rb, line 15 def bic @bic ||= @xml_data.xpath('RltdAgts/CdtrAgt/FinInstnId/BIC/text()').text end
iban()
click to toggle source
# File lib/camt_parser/general/creditor.rb, line 11 def iban @iban ||= @xml_data.xpath('RltdPties/CdtrAcct/Id/IBAN/text()').text end
name()
click to toggle source
# File lib/camt_parser/general/creditor.rb, line 7 def name @name ||= @xml_data.xpath('RltdPties/Cdtr/Nm/text()').text end