class CamtParser::Charges
Attributes
xml_data[R]
Public Class Methods
new(xml_data)
click to toggle source
# File lib/camt_parser/general/charges.rb, line 6 def initialize(xml_data) @xml_data = xml_data @total_charges_and_tax_amount = xml_data.xpath('TtlChrgsAndTaxAmt/text()').text end
Public Instance Methods
records()
click to toggle source
# File lib/camt_parser/general/charges.rb, line 19 def records @records ||= xml_data.xpath('Rcrd').map{ |x| CamtParser::Record.new(x) } end
total_charges_and_tax_amount()
click to toggle source
# File lib/camt_parser/general/charges.rb, line 11 def total_charges_and_tax_amount CamtParser::Misc.to_amount(@total_charges_and_tax_amount) end
total_charges_and_tax_amount_in_cents()
click to toggle source
# File lib/camt_parser/general/charges.rb, line 15 def total_charges_and_tax_amount_in_cents CamtParser::Misc.to_amount_in_cents(@total_charges_and_tax_amount) end