Class: OFX::TransactionalResponse

Inherits:
Response
  • Object
show all
Defined in:
lib/ofx/message_set.rb,
lib/ofx/1.0.2/message_set.rb

Instance Attribute Summary collapse

Attributes inherited from Response

#status

Instance Method Summary collapse

Instance Attribute Details

Returns the value of attribute client_cookie.



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

def client_cookie
  @client_cookie
end

#transaction_identifierObject

Returns the value of attribute transaction_identifier.



74
75
76
# File 'lib/ofx/message_set.rb', line 74

def transaction_identifier
  @transaction_identifier
end

Instance Method Details

#ofx_102_response_bodyObject

Raises:

  • (NotImplementedError)


161
162
163
# File 'lib/ofx/1.0.2/message_set.rb', line 161

def ofx_102_response_body
    raise NotImplementedError
end

#to_ofx_102_sObject



144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
# File 'lib/ofx/1.0.2/message_set.rb', line 144

def to_ofx_102_s
    response = ''
    response += "    <#{ofx_102_name}TRNRS>\n"

    response += "      <TRNUID>#{transaction_identifier}\n"
    response += "      <CLTCOOKIE>#{client_cookie}\n" if client_cookie

    response += "      <#{ofx_102_name}RS>\n"

    response += ofx_102_response_body + "\n"

    response += "      </#{ofx_102_name}RS>\n"

    response += "    </#{ofx_102_name}TRNRS>"
    response
end