Class: Mailosaur::Models::Preview

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/Mailosaur/models/preview.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from BaseModel

#to_json

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_imagesBoolean

Returns True if images were disabled in the preview.

Returns:

  • (Boolean)

    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_clientString

Returns The email client the preview was generated with.

Returns:

  • (String)

    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

#idString

Returns Unique identifier for the email preview.

Returns:

  • (String)

    Unique identifier for the email preview.



11
12
13
# File 'lib/Mailosaur/models/preview.rb', line 11

def id
  @id
end