class CamtParser::Debitor
Public Class Methods
new(xml_data)
click to toggle source
# File lib/camt_parser/general/debitor.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/debitor.rb, line 19 def bank_name @bank_name ||= @xml_data.xpath('RltdAgts/DbtrAgt/FinInstnId/Nm/text()').text end
bic()
click to toggle source
# File lib/camt_parser/general/debitor.rb, line 15 def bic @bic ||= @xml_data.xpath('RltdAgts/DbtrAgt/FinInstnId/BIC/text()').text end
iban()
click to toggle source
# File lib/camt_parser/general/debitor.rb, line 11 def iban @iban ||= @xml_data.xpath('RltdPties/DbtrAcct/Id/IBAN/text()').text end
name()
click to toggle source
# File lib/camt_parser/general/debitor.rb, line 7 def name @name ||= @xml_data.xpath('RltdPties/Dbtr/Nm/text()').text end