Class: Mailosaur::Models::Preview
- Defined in:
- lib/Mailosaur/models/preview.rb
Instance Attribute Summary collapse
-
#disable_images ⇒ Boolean
True if images were disabled in the preview.
-
#email_client ⇒ String
The email client the preview was generated with.
-
#id ⇒ String
Unique identifier for the email preview.
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ Preview
constructor
A new instance of Preview.
Methods inherited from BaseModel
Constructor Details
#initialize(data = {}) ⇒ Preview
Returns a new instance of Preview.
4 5 6 7 8 |
# File 'lib/Mailosaur/models/preview.rb', line 4 def initialize(data = {}) @id = data['id'] @email_client = data['emailClient'] @disable_images = data['disableImages'] end |
Instance Attribute Details
#disable_images ⇒ Boolean
Returns True if images were disabled in the preview.
17 18 19 |
# File 'lib/Mailosaur/models/preview.rb', line 17 def disable_images @disable_images end |
#email_client ⇒ String
Returns The email client the preview was generated with.
14 15 16 |
# File 'lib/Mailosaur/models/preview.rb', line 14 def email_client @email_client end |
#id ⇒ String
Returns Unique identifier for the email preview.
11 12 13 |
# File 'lib/Mailosaur/models/preview.rb', line 11 def id @id end |