Class: BankPayments::SwedbankImport::AddressRecord
- Inherits:
-
BankPayments::SpisuRecord
- Object
- BankPayments::SpisuRecord
- BankPayments::SwedbankImport::AddressRecord
- Defined in:
- lib/bank_payments/swedbank_import/address_record.rb
Instance Method Summary collapse
- #express? ⇒ Boolean
-
#initialize(raw_record) ⇒ AddressRecord
constructor
A new instance of AddressRecord.
-
#payment_method ⇒ Object
Enum where ‘0’ => ‘Paid by check’ ‘1’ => ‘Paid by depositing into an account’.
-
#priority ⇒ Object
Enum where ‘0’ => ‘Normal priority’ ‘1’ => ‘Express priority’.
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(raw_record) ⇒ AddressRecord
11 12 13 14 |
# File 'lib/bank_payments/swedbank_import/address_record.rb', line 11 def initialize(raw_record) super self.type = '3' end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class BankPayments::SpisuRecord
Instance Method Details
#express? ⇒ Boolean
16 17 18 |
# File 'lib/bank_payments/swedbank_import/address_record.rb', line 16 def express? priority == '1' end |
#payment_method ⇒ Object
Enum where ‘0’ => ‘Paid by check’ ‘1’ => ‘Paid by depositing into an account’
23 24 25 |
# File 'lib/bank_payments/swedbank_import/address_record.rb', line 23 def payment_method extract_raw_value __callee__ end |
#priority ⇒ Object
Enum where ‘0’ => ‘Normal priority’ ‘1’ => ‘Express priority’
30 31 32 |
# File 'lib/bank_payments/swedbank_import/address_record.rb', line 30 def priority extract_raw_value __callee__ end |