Class: OFX::MessageSetProfile

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#languageObject

Returns the value of attribute language.



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

def language
  @language
end

#message_set_classObject

Returns the value of attribute message_set_class.



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

def message_set_class
  @message_set_class
end

#message_urlObject

Returns the value of attribute message_url.



42
43
44
# File 'lib/ofx/message_set.rb', line 42

def message_url
  @message_url
end

#required_ofx_securityObject

Returns the value of attribute required_ofx_security.



43
44
45
# File 'lib/ofx/message_set.rb', line 43

def required_ofx_security
  @required_ofx_security
end

#requires_transport_securityObject

Returns the value of attribute requires_transport_security.



44
45
46
# File 'lib/ofx/message_set.rb', line 44

def requires_transport_security
  @requires_transport_security
end

#service_provider_nameObject

Returns the value of attribute service_provider_name.



41
42
43
# File 'lib/ofx/message_set.rb', line 41

def service_provider_name
  @service_provider_name
end

#signon_realmObject

Returns the value of attribute signon_realm.



48
49
50
# File 'lib/ofx/message_set.rb', line 48

def signon_realm
  @signon_realm
end

#supports_response_file_error_recoveryObject

Returns the value of attribute supports_response_file_error_recovery.



51
52
53
# File 'lib/ofx/message_set.rb', line 51

def supports_response_file_error_recovery
  @supports_response_file_error_recovery
end

#synchronization_modeObject

Returns the value of attribute synchronization_mode.



50
51
52
# File 'lib/ofx/message_set.rb', line 50

def synchronization_mode
  @synchronization_mode
end

#versionObject

Returns the value of attribute version.



40
41
42
# File 'lib/ofx/message_set.rb', line 40

def version
  @version
end

Instance Method Details

#from_ofx_102_hash(message_set_description_hash) ⇒ Object



73
74
75
76
77
78
79
80
81
82
83
84
# File 'lib/ofx/1.0.2/message_set.rb', line 73

def from_ofx_102_hash(message_set_description_hash)           
    message_set_core_hash = message_set_description_hash['MSGSETCORE']
    @version = OFX::Version.new(message_set_core_hash['VER'])
    @service_provider_name = message_set_core_hash['SPNAME']
    @message_url = URI.parse(message_set_core_hash['URL']) if message_set_core_hash['URL']
    @required_ofx_security = message_set_core_hash['OFXSEC']
    @requires_transport_security = message_set_core_hash['TRANSPSEC'] == 'Y' ? true : false
    @signon_realm = message_set_core_hash['SIGNONREALM']
    @language = message_set_core_hash['LANGUAGE']
    @synchronization_mode = message_set_core_hash['SYNCMODE']
    @supports_response_file_error_recovery = message_set_core_hash['RESPFILEER'] == 'Y' ? true : false
end

#requires_transport_security?Boolean

Returns:

  • (Boolean)


45
46
47
# File 'lib/ofx/message_set.rb', line 45

def requires_transport_security?
    @requires_transport_security
end

#supports_response_file_error_recovery?Boolean

Returns:

  • (Boolean)


52
53
54
# File 'lib/ofx/message_set.rb', line 52

def supports_response_file_error_recovery?
    @supports_response_file_error_recovery
end