Class: OFX::EmailMessageSetProfile

Inherits:
MessageSetProfile show all
Defined in:
lib/ofx/email_message_set.rb,
lib/ofx/1.0.2/email_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

#supports_emailObject

Returns the value of attribute supports_email.



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

def supports_email
  @supports_email
end

#supports_mime_messagesObject

Returns the value of attribute supports_mime_messages.



37
38
39
# File 'lib/ofx/email_message_set.rb', line 37

def supports_mime_messages
  @supports_mime_messages
end

Class Method Details

.from_ofx_102_hash(message_set_description_hash) ⇒ Object



23
24
25
26
27
28
29
30
31
32
# File 'lib/ofx/1.0.2/email_message_set.rb', line 23

def self.from_ofx_102_hash(message_set_description_hash)
    profile = OFX::EmailMessageSetProfile.new
    profile.message_set_class = OFX::EmailMessageSet
    profile.from_ofx_102_hash(message_set_description_hash)
    
    profile.supports_email = message_set_description_hash['MAILSUP'] == 'Y'
    profile.supports_mime_messages = message_set_description_hash['GETMIMESUP'] == 'Y'
    
    profile
end

.message_set_classObject



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

def self.message_set_class
    EmailMessageSet
end

Instance Method Details

#supports_email?Boolean

Returns:

  • (Boolean)


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

def supports_email?
    supports_email
end

#supports_mime_messages?Boolean

Returns:

  • (Boolean)


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

def supports_mime_messages?
    supports_mime_messages
end