Class: App42::Email::EmailMIME
- Inherits:
-
App42Response
- Object
- App42Response
- App42::Email::EmailMIME
- Defined in:
- lib/email/EmailMIME.rb
Constant Summary collapse
- PLAIN_TEXT_MIME_TYPE =
"text/plain"
- HTML_TEXT_MIME_TYPE =
"text/html"
Instance Attribute Summary
Attributes inherited from App42Response
#isResponseSuccess, #strResponse, #totalRecords
Instance Method Summary collapse
-
#enum(string) ⇒ Object
Sets the value of the EmailMIME.
-
#isAvailable(string) ⇒ Object
Returns the value of the EmailMIME.
Instance Method Details
#enum(string) ⇒ Object
Sets the value of the EmailMIME. text/plain or text/html.
-
the string of EmailMIME either text/plain or text/html.
28 29 30 |
# File 'lib/email/EmailMIME.rb', line 28 def enum(string) return EmailMIME.const_get(string) end |
#isAvailable(string) ⇒ Object
Returns the value of the EmailMIME. text/plain or text/html.
39 40 41 42 43 44 45 46 47 |
# File 'lib/email/EmailMIME.rb', line 39 def isAvailable(string) if(string == "text/plain") return "PLAIN_TEXT_MIME_TYPE" elsif(string == "text/html") return "HTML_TEXT_MIME_TYPE"; else return nil end end |