Class: OFX::SignonResponse

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

Instance Attribute Summary collapse

Attributes inherited from Response

#status

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Response

#to_ofx_102_s

Instance Attribute Details

#dateObject

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_updateObject

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
end

#date_of_last_profile_updateObject

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_identificationObject

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

#languageObject

Returns the value of attribute language.



92
93
94
# File 'lib/ofx/signon_message_set.rb', line 92

def language
  @language
end

Returns the value of attribute session_cookie.



96
97
98
# File 'lib/ofx/signon_message_set.rb', line 96

def session_cookie
  @session_cookie
end

#user_keyObject

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. = 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_nameObject



99
100
101
# File 'lib/ofx/1.0.2/signon_message_set.rb', line 99

def ofx_102_name
    'SON'
end

#ofx_102_response_bodyObject

Raises:

  • (NotImplementedError)


103
104
105
# File 'lib/ofx/1.0.2/signon_message_set.rb', line 103

def ofx_102_response_body
    raise NotImplementedError
end