Class: OFX::SignupMessageSetProfile

Inherits:
MessageSetProfile show all
Defined in:
lib/ofx/signup_message_set.rb,
lib/ofx/1.0.2/signup_message_set.rb,
lib/ofx/1.0.2/signup_message_set.rb

Instance Attribute Summary collapse

Attributes inherited from MessageSetProfile

#language, #message_set_class, #message_url, #required_ofx_security, #requires_transport_security, #service_provider_name, #signon_realm, #supports_response_file_error_recovery, #synchronization_mode, #version

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from MessageSetProfile

#from_ofx_102_hash, #requires_transport_security?, #supports_response_file_error_recovery?

Instance Attribute Details

#available_account_requests_allowedObject

Returns the value of attribute available_account_requests_allowed.



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

def 
  @available_account_requests_allowed
end

#enrollmentObject

Returns the value of attribute enrollment.



33
34
35
# File 'lib/ofx/signup_message_set.rb', line 33

def enrollment
  @enrollment
end

#service_activation_requests_allowedObject

Returns the value of attribute service_activation_requests_allowed.



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

def service_activation_requests_allowed
  @service_activation_requests_allowed
end

#user_information_changes_allowedObject

Returns the value of attribute user_information_changes_allowed.



34
35
36
# File 'lib/ofx/signup_message_set.rb', line 34

def user_information_changes_allowed
  @user_information_changes_allowed
end

Class Method Details

.from_ofx_102_hash(message_set_description_hash) ⇒ Object



48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# File 'lib/ofx/1.0.2/signup_message_set.rb', line 48

def self.from_ofx_102_hash(message_set_description_hash)
    profile = OFX::SignupMessageSetProfile.new
    profile.message_set_class = OFX::SignupMessageSet
    profile.from_ofx_102_hash(message_set_description_hash)
    
    if (message_set_description_hash['CLIENTENROLL'])
        profile.enrollment = OFX::ClientEnrollment.new((message_set_description_hash['CLIENTENROLL']['ACCTREQUIRED'] == 'Y'))
    elsif (message_set_description_hash['WEBENROLL'])
        profile.enrollment = OFX::WebEnrollment.new(URI.parse(message_set_description_hash['WEBENROLL']['URL']))
    elsif (message_set_description_hash['OTHERENROLL'])
        profile.enrollment = OFX::OtherEnrollment.new(message_set_description_hash['OTHERENROLL']['MESSAGE'])
    end
    
    profile.user_information_changes_allowed = message_set_description_hash['CHGUSERINFO'] == 'Y'
    profile. = message_set_description_hash['AVAILACCTS'] == 'Y'
    profile.service_activation_requests_allowed = message_set_description_hash['CLIENTACTREQ'] == 'Y'
    
    profile
end

.message_set_classObject



29
30
31
# File 'lib/ofx/signup_message_set.rb', line 29

def self.message_set_class
    SignupMessageSet
end

Instance Method Details

#available_account_requests_allowed?Boolean

Returns:

  • (Boolean)


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

def 
    
end

#service_activation_requests_allowed?Boolean

Returns:

  • (Boolean)


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

def service_activation_requests_allowed?
    service_activation_requests_allowed
end

#user_information_changes_allowed?Boolean

Returns:

  • (Boolean)


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

def user_information_changes_allowed?
    user_information_changes_allowed
end