Class: OFX::UserCredentials

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

Instance Method Summary collapse

Constructor Details

#initialize(user_identification, password) ⇒ UserCredentials

Returns a new instance of UserCredentials.



38
39
40
41
# File 'lib/ofx/signon_message_set.rb', line 38

def initialize(user_identification, password)
    @user_identification = user_identification
    @password = password
end

Instance Attribute Details

#passwordObject

Returns the value of attribute password.



36
37
38
# File 'lib/ofx/signon_message_set.rb', line 36

def password
  @password
end

#user_identificationObject

Returns the value of attribute user_identification.



35
36
37
# File 'lib/ofx/signon_message_set.rb', line 35

def user_identification
  @user_identification
end

Instance Method Details

#to_ofx_102_sObject



67
68
69
70
# File 'lib/ofx/1.0.2/signon_message_set.rb', line 67

def to_ofx_102_s
    "      <USERID>#{user_identification}\n" +
    "      <USERPASS>#{password}"
end