Class: OFX::FinancialInstitutionIdentification
- Inherits:
-
Object
- Object
- OFX::FinancialInstitutionIdentification
- Defined in:
- lib/ofx/signon_message_set.rb,
lib/ofx/1.0.2/signon_message_set.rb
Instance Attribute Summary collapse
-
#financial_institution_identifier ⇒ Object
Returns the value of attribute financial_institution_identifier.
-
#organization ⇒ Object
Returns the value of attribute organization.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(organization, financial_institution_identifier) ⇒ FinancialInstitutionIdentification
constructor
A new instance of FinancialInstitutionIdentification.
- #to_ofx_102_s ⇒ Object
Constructor Details
#initialize(organization, financial_institution_identifier) ⇒ FinancialInstitutionIdentification
Returns a new instance of FinancialInstitutionIdentification.
58 59 60 61 |
# File 'lib/ofx/signon_message_set.rb', line 58 def initialize(organization, financial_institution_identifier) @organization = organization @financial_institution_identifier = financial_institution_identifier end |
Instance Attribute Details
#financial_institution_identifier ⇒ Object
Returns the value of attribute financial_institution_identifier.
56 57 58 |
# File 'lib/ofx/signon_message_set.rb', line 56 def financial_institution_identifier @financial_institution_identifier end |
#organization ⇒ Object
Returns the value of attribute organization.
55 56 57 |
# File 'lib/ofx/signon_message_set.rb', line 55 def organization @organization end |
Class Method Details
.from_ofx_102_hash(fi_hash) ⇒ Object
85 86 87 88 |
# File 'lib/ofx/1.0.2/signon_message_set.rb', line 85 def self.from_ofx_102_hash(fi_hash) return FinancialInstitutionIdentification.new(fi_hash['ORG'], fi_hash['FID']) end |
Instance Method Details
#to_ofx_102_s ⇒ Object
79 80 81 82 83 84 |
# File 'lib/ofx/1.0.2/signon_message_set.rb', line 79 def to_ofx_102_s " <FI>\n" + " <ORG>#{organization}\n" + " <FID>#{financial_institution_identifier}\n" + " </FI>" end |