Class: OFX::SignonMessageSet
- Inherits:
-
MessageSet
show all
- Defined in:
- lib/ofx/signon_message_set.rb,
lib/ofx/1.0.2/signon_message_set.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from MessageSet
from_ofx_102_message_set_hash, #request_or_response_from_ofx_102_tag_name, #requests, #responses, #to_ofx_102_s
Class Method Details
.from_ofx_102_hash(message_set_hash) ⇒ Object
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# File 'lib/ofx/1.0.2/signon_message_set.rb', line 24
def self.from_ofx_102_hash(message_set_hash)
message_set = SignonMessageSet.new
message_set_hash.each_pair() do |response_or_request_name, response_or_request_hash|
case response_or_request_name
when "SONRQ" then message_set.requests << SignonRequest.from_ofx_102_hash(response_or_request_hash)
when "SONRS" then message_set.responses << SignonResponse.from_ofx_102_hash(response_or_request_hash)
else raise NotImplementedError, response_or_request_name
end
end
return message_set
end
|
Instance Method Details
#ofx_102_message_set_name ⇒ Object
20
21
22
|
# File 'lib/ofx/1.0.2/signon_message_set.rb', line 20
def ofx_102_message_set_name
'SIGNON'
end
|
#precedence ⇒ Object
20
21
22
|
# File 'lib/ofx/signon_message_set.rb', line 20
def precedence
1
end
|
#version ⇒ Object
23
24
25
|
# File 'lib/ofx/signon_message_set.rb', line 23
def version
1
end
|