Class: OFX::SignonRequest

Inherits:
Request
  • 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

Methods inherited from Request

#to_ofx_102_s

Instance Attribute Details

#application_identificationObject

Returns the value of attribute application_identification.



81
82
83
# File 'lib/ofx/signon_message_set.rb', line 81

def application_identification
  @application_identification
end

#client_unique_identifierObject

Returns the value of attribute client_unique_identifier.



82
83
84
# File 'lib/ofx/signon_message_set.rb', line 82

def client_unique_identifier
  @client_unique_identifier
end

#dateObject

Returns the value of attribute date.



75
76
77
# File 'lib/ofx/signon_message_set.rb', line 75

def date
  @date
end

#financial_institution_identificationObject

Returns the value of attribute financial_institution_identification.



79
80
81
# File 'lib/ofx/signon_message_set.rb', line 79

def financial_institution_identification
  @financial_institution_identification
end

#generate_user_keyObject

Returns the value of attribute generate_user_key.



77
78
79
# File 'lib/ofx/signon_message_set.rb', line 77

def generate_user_key
  @generate_user_key
end

#languageObject

Returns the value of attribute language.



78
79
80
# File 'lib/ofx/signon_message_set.rb', line 78

def language
  @language
end

Returns the value of attribute session_cookie.



80
81
82
# File 'lib/ofx/signon_message_set.rb', line 80

def session_cookie
  @session_cookie
end

#user_identificationObject

Returns the value of attribute user_identification.



76
77
78
# File 'lib/ofx/signon_message_set.rb', line 76

def user_identification
  @user_identification
end

Class Method Details

.from_ofx_102_hash(request_hash) ⇒ Object

Raises:

  • (NotImplementedError)


62
63
64
# File 'lib/ofx/1.0.2/signon_message_set.rb', line 62

def self.from_ofx_102_hash(request_hash)
    raise NotImplementedError
end

Instance Method Details

#ofx_102_nameObject



49
50
51
# File 'lib/ofx/1.0.2/signon_message_set.rb', line 49

def ofx_102_name
    'SON'
end

#ofx_102_request_bodyObject



52
53
54
55
56
57
58
59
60
61
# File 'lib/ofx/1.0.2/signon_message_set.rb', line 52

def ofx_102_request_body
    "      <DTCLIENT>#{date.to_ofx_102_s}\n" +
    user_identification.to_ofx_102_s + "\n" +
    ("      <GENUSERKEY>#{generate_user_key}\n" if generate_user_key).to_s +
    "      <LANGUAGE>#{language}\n" +
    financial_institution_identification.to_ofx_102_s + "\n" +
    ("      <SESSCOOKIE>#{session_cookie}\n" if session_cookie).to_s +
    application_identification.to_ofx_102_s + "\n" +
    ("      <CLIENTUID>#{client_unique_identifier}" if client_unique_identifier).to_s
end

#satisfies_requirements?Boolean

Returns:

  • (Boolean)

Raises:

  • (NotImplementedError)


84
85
86
# File 'lib/ofx/signon_message_set.rb', line 84

def satisfies_requirements?
    raise NotImplementedError
end