Class: OFX::FinancialInstitutionIdentification

Inherits:
Object
  • Object
show all
Defined in:
lib/ofx/signon_message_set.rb,
lib/ofx/1.0.2/signon_message_set.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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_identifierObject

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

#organizationObject

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_sObject



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