Class: OFX::SignonResponse
- Defined in:
- lib/ofx/signon_message_set.rb,
lib/ofx/1.0.2/signon_message_set.rb
Instance Attribute Summary collapse
-
#date ⇒ Object
Returns the value of attribute date.
-
#date_of_last_account_update ⇒ Object
Returns the value of attribute date_of_last_account_update.
-
#date_of_last_profile_update ⇒ Object
Returns the value of attribute date_of_last_profile_update.
-
#financial_institution_identification ⇒ Object
Returns the value of attribute financial_institution_identification.
-
#language ⇒ Object
Returns the value of attribute language.
-
#session_cookie ⇒ Object
Returns the value of attribute session_cookie.
-
#user_key ⇒ Object
Returns the value of attribute user_key.
Attributes inherited from Response
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Response
Instance Attribute Details
#date ⇒ Object
Returns the value of attribute date.
90 91 92 |
# File 'lib/ofx/signon_message_set.rb', line 90 def date @date end |
#date_of_last_account_update ⇒ Object
Returns the value of attribute date_of_last_account_update.
94 95 96 |
# File 'lib/ofx/signon_message_set.rb', line 94 def date_of_last_account_update @date_of_last_account_update end |
#date_of_last_profile_update ⇒ Object
Returns the value of attribute date_of_last_profile_update.
93 94 95 |
# File 'lib/ofx/signon_message_set.rb', line 93 def date_of_last_profile_update @date_of_last_profile_update end |
#financial_institution_identification ⇒ Object
Returns the value of attribute financial_institution_identification.
95 96 97 |
# File 'lib/ofx/signon_message_set.rb', line 95 def financial_institution_identification @financial_institution_identification end |
#language ⇒ Object
Returns the value of attribute language.
92 93 94 |
# File 'lib/ofx/signon_message_set.rb', line 92 def language @language end |
#session_cookie ⇒ Object
Returns the value of attribute session_cookie.
96 97 98 |
# File 'lib/ofx/signon_message_set.rb', line 96 def @session_cookie end |
#user_key ⇒ Object
Returns the value of attribute user_key.
91 92 93 |
# File 'lib/ofx/signon_message_set.rb', line 91 def user_key @user_key end |
Class Method Details
.from_ofx_102_hash(response_hash) ⇒ Object
107 108 109 110 111 112 113 114 115 116 117 118 119 120 |
# File 'lib/ofx/1.0.2/signon_message_set.rb', line 107 def self.from_ofx_102_hash(response_hash) response = SignonResponse.new response.status = OFX::Status.from_ofx_102_hash(response_hash['STATUS']) response.date = response_hash['DTSERVER'].to_datetime if response_hash['DTSERVER'] #TODO: @user_key response.language = response_hash['LANGUAGE'] response.date_of_last_profile_update = response_hash['DTPROFUP'].to_datetime if response_hash['DTPROFUP'] response.date_of_last_account_update = response_hash['DTACCTUP'].to_datetime if response_hash['DTACCTUP'] response.financial_institution_identification = OFX::FinancialInstitutionIdentification.from_ofx_102_hash(response_hash['FI']) if response_hash['FI'] #TODO: @session_cookie response end |
Instance Method Details
#ofx_102_name ⇒ Object
99 100 101 |
# File 'lib/ofx/1.0.2/signon_message_set.rb', line 99 def ofx_102_name 'SON' end |
#ofx_102_response_body ⇒ Object
103 104 105 |
# File 'lib/ofx/1.0.2/signon_message_set.rb', line 103 def ofx_102_response_body raise NotImplementedError end |