Class: Mailosaur::Models::Content
- Defined in:
- lib/Mailosaur/models/content.rb
Instance Attribute Summary collapse
- #embed ⇒ Boolean
- #iframe ⇒ Boolean
- #missing_alt ⇒ Boolean
- #missing_list_unsubscribe ⇒ Boolean
- #object ⇒ Boolean
- #script ⇒ Boolean
- #short_urls ⇒ Boolean
- #text_size ⇒ Integer
- #total_size ⇒ Integer
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ Content
constructor
A new instance of Content.
Methods inherited from BaseModel
Constructor Details
#initialize(data = {}) ⇒ Content
Returns a new instance of Content.
4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/Mailosaur/models/content.rb', line 4 def initialize(data = {}) @embed = data['embed'] @iframe = data['iframe'] @object = data['object'] @script = data['script'] @short_urls = data['shortUrls'] @text_size = data['textSize'] @total_size = data['totalSize'] @missing_alt = data['missingAlt'] @missing_list_unsubscribe = data['missingListUnsubscribe'] end |
Instance Attribute Details
#embed ⇒ Boolean
17 18 19 |
# File 'lib/Mailosaur/models/content.rb', line 17 def @embed end |
#iframe ⇒ Boolean
19 20 21 |
# File 'lib/Mailosaur/models/content.rb', line 19 def iframe @iframe end |
#missing_alt ⇒ Boolean
31 32 33 |
# File 'lib/Mailosaur/models/content.rb', line 31 def missing_alt @missing_alt end |
#missing_list_unsubscribe ⇒ Boolean
33 34 35 |
# File 'lib/Mailosaur/models/content.rb', line 33 def missing_list_unsubscribe @missing_list_unsubscribe end |
#object ⇒ Boolean
21 22 23 |
# File 'lib/Mailosaur/models/content.rb', line 21 def object @object end |
#script ⇒ Boolean
23 24 25 |
# File 'lib/Mailosaur/models/content.rb', line 23 def script @script end |
#short_urls ⇒ Boolean
25 26 27 |
# File 'lib/Mailosaur/models/content.rb', line 25 def short_urls @short_urls end |
#text_size ⇒ Integer
27 28 29 |
# File 'lib/Mailosaur/models/content.rb', line 27 def text_size @text_size end |
#total_size ⇒ Integer
29 30 31 |
# File 'lib/Mailosaur/models/content.rb', line 29 def total_size @total_size end |