Class: UnionBank::ECrediting::EnrollmentFile::DetailLine
- Inherits:
-
Object
- Object
- UnionBank::ECrediting::EnrollmentFile::DetailLine
- Includes:
- ActiveModel::Model
- Defined in:
- lib/union_bank/e_crediting/enrollment_file/detail_line.rb
Overview
Describes UnionBank’s eCrediting Enrollment File’s detail line
Instance Attribute Summary collapse
-
#account_name ⇒ Object
Returns the value of attribute account_name.
-
#account_number ⇒ Object
Returns the value of attribute account_number.
-
#email ⇒ Object
Returns the value of attribute email.
-
#mobile_number ⇒ Object
Returns the value of attribute mobile_number.
-
#payee_id ⇒ Object
Returns the value of attribute payee_id.
Instance Method Summary collapse
-
#initialize(payee_id:, account_number:, account_name:, mobile_number:, email:) ⇒ DetailLine
constructor
A new instance of DetailLine.
- #ordered_field_values ⇒ Array
Constructor Details
#initialize(payee_id:, account_number:, account_name:, mobile_number:, email:) ⇒ DetailLine
Returns a new instance of DetailLine.
33 34 35 36 37 38 39 40 41 |
# File 'lib/union_bank/e_crediting/enrollment_file/detail_line.rb', line 33 def initialize(payee_id:, account_number:, account_name:, mobile_number:, email:) @payee_id = payee_id @account_number = account_number @account_name = account_name @mobile_number = mobile_number @email = email raise ArgumentError, errors..to_sentence unless valid? end |
Instance Attribute Details
#account_name ⇒ Object
Returns the value of attribute account_name.
9 10 11 |
# File 'lib/union_bank/e_crediting/enrollment_file/detail_line.rb', line 9 def account_name @account_name end |
#account_number ⇒ Object
Returns the value of attribute account_number.
9 10 11 |
# File 'lib/union_bank/e_crediting/enrollment_file/detail_line.rb', line 9 def account_number @account_number end |
#email ⇒ Object
Returns the value of attribute email.
9 10 11 |
# File 'lib/union_bank/e_crediting/enrollment_file/detail_line.rb', line 9 def email @email end |
#mobile_number ⇒ Object
Returns the value of attribute mobile_number.
9 10 11 |
# File 'lib/union_bank/e_crediting/enrollment_file/detail_line.rb', line 9 def mobile_number @mobile_number end |
#payee_id ⇒ Object
Returns the value of attribute payee_id.
9 10 11 |
# File 'lib/union_bank/e_crediting/enrollment_file/detail_line.rb', line 9 def payee_id @payee_id end |
Instance Method Details
#ordered_field_values ⇒ Array
44 45 46 47 48 49 50 51 52 53 |
# File 'lib/union_bank/e_crediting/enrollment_file/detail_line.rb', line 44 def ordered_field_values [ "D", # identifier payee_id, account_number, account_name, mobile_number, email ] end |