Class: BankPayments::SwedbankExport::PaymentRecord
- Inherits:
-
MoneyRecord
- Object
- BankPayments::SpisuRecord
- MoneyRecord
- BankPayments::SwedbankExport::PaymentRecord
- Defined in:
- lib/bank_payments/swedbank_export/payment_record.rb
Instance Method Summary collapse
- #amount_foreign=(amount) ⇒ Object
- #amount_sek=(amount) ⇒ Object
-
#initialize ⇒ PaymentRecord
constructor
A new instance of PaymentRecord.
Methods inherited from BankPayments::SpisuRecord
define_field, defined_fields, definition_for, #extract_date, #extract_field_value, #extract_raw_value, inherited, #method_missing, #serialize_value, #set_numeric_value, #set_text_value, #set_value, #to_s, #type, #type=
Constructor Details
#initialize ⇒ PaymentRecord
Returns a new instance of PaymentRecord.
4 5 6 7 |
# File 'lib/bank_payments/swedbank_export/payment_record.rb', line 4 def initialize super self.type = '6' end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class BankPayments::SpisuRecord
Instance Method Details
#amount_foreign=(amount) ⇒ Object
13 14 15 |
# File 'lib/bank_payments/swedbank_export/payment_record.rb', line 13 def amount_foreign=(amount) super amount.spisu_format end |
#amount_sek=(amount) ⇒ Object
9 10 11 |
# File 'lib/bank_payments/swedbank_export/payment_record.rb', line 9 def amount_sek=(amount) super amount.spisu_format end |