Class: Workarea::Listrak::Models::List
- Inherits:
-
Object
- Object
- Workarea::Listrak::Models::List
- Defined in:
- app/services/workarea/listrak/models/list.rb
Instance Attribute Summary collapse
-
#hash ⇒ Object
readonly
Returns the value of attribute hash.
Instance Method Summary collapse
-
#bounce_domain_alias ⇒ String
Alias domain for email bounces.
-
#bounce_handling ⇒ String
Bounce handling method for the list.
-
#bounce_unsubscribe_count ⇒ Integer
The number of bounces that are allowed before being automatically unsubscribed.
-
#create_date ⇒ DateTime
The creation date of the list.
-
#enable_browser_link ⇒ Boolean
Whether browser link is enabled.
-
#enable_double_opt_in ⇒ Boolean
Whether double opt-in is enabled.
-
#enable_dynamic_content ⇒ Boolean
Whether dynamic content is enabled.
-
#enable_google_analytics ⇒ Boolean
Whether Google Analytics is enabled.
-
#enable_internationalization ⇒ Boolean
Whether internationalization is enabled.
-
#enable_list_hygiene ⇒ Boolean
Whether list hygiene is enabled.
-
#enable_list_removal_header ⇒ Object
Whether unsubscribe information is automatically included in message headers.
-
#enable_list_removal_link ⇒ Boolean
Whether the list removal link is automatically included.
-
#enable_listrak_analytics ⇒ Boolean
Whether Listrak Analytics is enabled.
-
#enable_spam_score_personalization ⇒ Boolean
Whether personalization is available in Spam Score.
-
#enable_to_name_personalization ⇒ Boolean
Whether personalization is enabled for a recipient’s To name.
-
#folder_id ⇒ Integer
Identifier of the folder associated with the list.
-
#from_email ⇒ String
The From email address used by default when sending messages.
-
#from_name ⇒ String
The From name used by default when sending messages.
-
#google_tracking_domains ⇒ Array<String>
Google tracking domains of the list.
-
#id ⇒ Integer
Identifier used to locate the list.
-
#initialize(hash) ⇒ List
constructor
A new instance of List.
-
#ip_pool_id ⇒ Integer
Identifier of the IP pool associated with the list.
-
#link_domain_alias ⇒ Object
Alias domain for links in the list’s messages.
-
#media_domain_alias ⇒ String
Alias domain for media in the list’s messages.
-
#name ⇒ String
Name of the list.
Constructor Details
#initialize(hash) ⇒ List
Returns a new instance of List.
7 8 9 |
# File 'app/services/workarea/listrak/models/list.rb', line 7 def initialize(hash) @hash = hash end |
Instance Attribute Details
#hash ⇒ Object (readonly)
Returns the value of attribute hash.
5 6 7 |
# File 'app/services/workarea/listrak/models/list.rb', line 5 def hash @hash end |
Instance Method Details
#bounce_domain_alias ⇒ String
Alias domain for email bounces.
47 48 49 |
# File 'app/services/workarea/listrak/models/list.rb', line 47 def bounce_domain_alias hash["bounceDomainAlias"] end |
#bounce_handling ⇒ String
Bounce handling method for the list. Allowed values are None, Standard, and Aggressive.
55 56 57 |
# File 'app/services/workarea/listrak/models/list.rb', line 55 def bounce_handling hash["bounceHandling"] end |
#bounce_unsubscribe_count ⇒ Integer
The number of bounces that are allowed before being automatically unsubscribed.
63 64 65 |
# File 'app/services/workarea/listrak/models/list.rb', line 63 def bounce_unsubscribe_count hash["bounceUnsubscribeCount"] end |
#create_date ⇒ DateTime
The creation date of the list.
71 72 73 |
# File 'app/services/workarea/listrak/models/list.rb', line 71 def create_date DateTime.strptime(hash["createDate"], '%FT%T') end |
#enable_browser_link ⇒ Boolean
Whether browser link is enabled.
79 80 81 |
# File 'app/services/workarea/listrak/models/list.rb', line 79 def enable_browser_link hash["enableBrowserLink"] end |
#enable_double_opt_in ⇒ Boolean
Whether double opt-in is enabled.
87 88 89 |
# File 'app/services/workarea/listrak/models/list.rb', line 87 def enable_double_opt_in hash["enableDoubleOptIn"] end |
#enable_dynamic_content ⇒ Boolean
Whether dynamic content is enabled.
95 96 97 |
# File 'app/services/workarea/listrak/models/list.rb', line 95 def enable_dynamic_content hash["enableDynamicContent"] end |
#enable_google_analytics ⇒ Boolean
Whether Google Analytics is enabled.
103 104 105 |
# File 'app/services/workarea/listrak/models/list.rb', line 103 def enable_google_analytics hash["enableGoogleAnalytics"] end |
#enable_internationalization ⇒ Boolean
Whether internationalization is enabled.
111 112 113 |
# File 'app/services/workarea/listrak/models/list.rb', line 111 def enable_internationalization hash["enableInternationalization"] end |
#enable_list_hygiene ⇒ Boolean
Whether list hygiene is enabled.
119 120 121 |
# File 'app/services/workarea/listrak/models/list.rb', line 119 def enable_list_hygiene hash["enableListHygiene"] end |
#enable_list_removal_header ⇒ Object
Whether unsubscribe information is automatically included in message headers.
return [Boolean]
127 128 129 |
# File 'app/services/workarea/listrak/models/list.rb', line 127 def enable_list_removal_header hash["enableListRemovalHeader"] end |
#enable_list_removal_link ⇒ Boolean
Whether the list removal link is automatically included.
135 136 137 |
# File 'app/services/workarea/listrak/models/list.rb', line 135 def enable_list_removal_link hash["enableListRemovalLink"] end |
#enable_listrak_analytics ⇒ Boolean
Whether Listrak Analytics is enabled.
142 143 144 |
# File 'app/services/workarea/listrak/models/list.rb', line 142 def enable_listrak_analytics hash["enableListrakAnalytics"] end |
#enable_spam_score_personalization ⇒ Boolean
Whether personalization is available in Spam Score.
150 151 152 |
# File 'app/services/workarea/listrak/models/list.rb', line 150 def enable_spam_score_personalization hash["enableSpamScorePersonalization"] end |
#enable_to_name_personalization ⇒ Boolean
Whether personalization is enabled for a recipient’s To name.
158 159 160 |
# File 'app/services/workarea/listrak/models/list.rb', line 158 def enable_to_name_personalization hash["enableToNamePersonalization"] end |
#folder_id ⇒ Integer
Identifier of the folder associated with the list.
31 32 33 |
# File 'app/services/workarea/listrak/models/list.rb', line 31 def folder_id hash["folderId"] end |
#from_email ⇒ String
The From email address used by default when sending messages.
166 167 168 |
# File 'app/services/workarea/listrak/models/list.rb', line 166 def from_email hash["fromEmail"] end |
#from_name ⇒ String
The From name used by default when sending messages.
174 175 176 |
# File 'app/services/workarea/listrak/models/list.rb', line 174 def from_name hash["fromName"] end |
#google_tracking_domains ⇒ Array<String>
Google tracking domains of the list.
182 183 184 |
# File 'app/services/workarea/listrak/models/list.rb', line 182 def google_tracking_domains hash["googleTrackingDomains"] end |
#id ⇒ Integer
Identifier used to locate the list.
15 16 17 |
# File 'app/services/workarea/listrak/models/list.rb', line 15 def id hash["listId"] end |
#ip_pool_id ⇒ Integer
Identifier of the IP pool associated with the list.
39 40 41 |
# File 'app/services/workarea/listrak/models/list.rb', line 39 def ip_pool_id hash["ipPoolId"] end |
#link_domain_alias ⇒ Object
Alias domain for links in the list’s messages.
return [String]
190 191 192 |
# File 'app/services/workarea/listrak/models/list.rb', line 190 def link_domain_alias hash["linkDomainAlias"] end |
#media_domain_alias ⇒ String
Alias domain for media in the list’s messages.
198 199 200 |
# File 'app/services/workarea/listrak/models/list.rb', line 198 def media_domain_alias hash["mediaDomainAlias"] end |
#name ⇒ String
Name of the list.
23 24 25 |
# File 'app/services/workarea/listrak/models/list.rb', line 23 def name hash["listName"] end |