class App42::Email::EmailMIME

Constants

HTML_TEXT_MIME_TYPE
PLAIN_TEXT_MIME_TYPE

Public Instance Methods

enum(string) click to toggle source

Sets the value of the EmailMIME. text/plain or text/html.

@param string

  • the string of EmailMIME either text/plain or text/html.

# File lib/email/EmailMIME.rb, line 28
def enum(string)
  return EmailMIME.const_get(string)
end
isAvailable(string) click to toggle source

Returns the value of the EmailMIME. text/plain or text/html.

@return the value of EmailMIME.

# 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