Class: Responsys::Api::Object::EmailFormat
- Inherits:
-
Object
- Object
- Responsys::Api::Object::EmailFormat
- Includes:
- Responsys::Api::Object
- Defined in:
- lib/responsys/api/object/email_format.rb
Constant Summary collapse
- AVAILABLE_EMAIL_FORMAT =
%w(TEXT_FORMAT HTML_FORMAT NO_FORMAT MULTIPART_FORMAT)
Instance Attribute Summary collapse
-
#email_format_string ⇒ Object
Returns the value of attribute email_format_string.
Instance Method Summary collapse
-
#initialize(email_format = "NO_FORMAT") ⇒ EmailFormat
constructor
A new instance of EmailFormat.
- #to_api ⇒ Object
Constructor Details
#initialize(email_format = "NO_FORMAT") ⇒ EmailFormat
Returns a new instance of EmailFormat.
9 10 11 12 13 14 15 |
# File 'lib/responsys/api/object/email_format.rb', line 9 def initialize(email_format = "NO_FORMAT") if AVAILABLE_EMAIL_FORMAT.include? email_format @email_format_string = email_format else raise ParameterException, Responsys::Helper.("api.object.email_format.incorrect_email_format") end end |
Instance Attribute Details
#email_format_string ⇒ Object
Returns the value of attribute email_format_string.
6 7 8 |
# File 'lib/responsys/api/object/email_format.rb', line 6 def email_format_string @email_format_string end |
Instance Method Details
#to_api ⇒ Object
17 18 19 |
# File 'lib/responsys/api/object/email_format.rb', line 17 def to_api @email_format_string end |