Class: AqumulateAPI::FinancialInstitution
- Defined in:
- lib/aqumulate_api/entities/financial_institution.rb
Constant Summary collapse
- SOURCE_ASSOCIATIONS =
[ { key: 'FILoginParameters', class: LoginParameter, attr: :login_parameters }, { key: 'FiFetchParamList', class: FetchParameter, attr: :fetch_parameters }, { key: 'FiAccountDataList', class: AccountData, attr: :account_data }, ]
- ATTR_MAP =
{ id: 'FIId', name: 'FIName', url: 'Url', }
Instance Attribute Summary collapse
-
#account_data ⇒ Object
Returns the value of attribute account_data.
-
#fetch_parameters ⇒ Object
Returns the value of attribute fetch_parameters.
-
#id ⇒ Object
Returns the value of attribute id.
-
#login_parameters ⇒ Object
Returns the value of attribute login_parameters.
-
#name ⇒ Object
Returns the value of attribute name.
-
#url ⇒ Object
Returns the value of attribute url.
Class Method Summary collapse
Methods inherited from Entity
Constructor Details
This class inherits a constructor from AqumulateAPI::Entity
Instance Attribute Details
#account_data ⇒ Object
Returns the value of attribute account_data.
16 17 18 |
# File 'lib/aqumulate_api/entities/financial_institution.rb', line 16 def account_data @account_data end |
#fetch_parameters ⇒ Object
Returns the value of attribute fetch_parameters.
16 17 18 |
# File 'lib/aqumulate_api/entities/financial_institution.rb', line 16 def fetch_parameters @fetch_parameters end |
#id ⇒ Object
Returns the value of attribute id.
16 17 18 |
# File 'lib/aqumulate_api/entities/financial_institution.rb', line 16 def id @id end |
#login_parameters ⇒ Object
Returns the value of attribute login_parameters.
16 17 18 |
# File 'lib/aqumulate_api/entities/financial_institution.rb', line 16 def login_parameters @login_parameters end |
#name ⇒ Object
Returns the value of attribute name.
16 17 18 |
# File 'lib/aqumulate_api/entities/financial_institution.rb', line 16 def name @name end |
#url ⇒ Object
Returns the value of attribute url.
16 17 18 |
# File 'lib/aqumulate_api/entities/financial_institution.rb', line 16 def url @url end |
Class Method Details
.find(id) ⇒ Object
30 31 32 33 |
# File 'lib/aqumulate_api/entities/financial_institution.rb', line 30 def self.find(id) response = AggAccount.advisor_get_financial_institution({ 'FIId' => id }) from_source(response['FinancialInstitution']) end |
.search(keyword) ⇒ Object
35 36 37 38 39 40 |
# File 'lib/aqumulate_api/entities/financial_institution.rb', line 35 def self.search(keyword) response = AggAccount.advisor_search_financial_institution({ 'Keyword' => keyword }) return [] unless response.has_key?('FinancialInstitutions') response['FinancialInstitutions'].map { |source| from_source(source) } end |