Class: Workarea::Listrak::Models::List

Inherits:
Object
  • Object
show all
Defined in:
app/services/workarea/listrak/models/list.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#hashObject (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_aliasString

Alias domain for email bounces.

Returns:

  • (String)


47
48
49
# File 'app/services/workarea/listrak/models/list.rb', line 47

def bounce_domain_alias
  hash["bounceDomainAlias"]
end

#bounce_handlingString

Bounce handling method for the list. Allowed values are None, Standard, and Aggressive.

Returns:

  • (String)


55
56
57
# File 'app/services/workarea/listrak/models/list.rb', line 55

def bounce_handling
  hash["bounceHandling"]
end

#bounce_unsubscribe_countInteger

The number of bounces that are allowed before being automatically unsubscribed.

Returns:

  • (Integer)


63
64
65
# File 'app/services/workarea/listrak/models/list.rb', line 63

def bounce_unsubscribe_count
  hash["bounceUnsubscribeCount"]
end

#create_dateDateTime

The creation date of the list.

Returns:

  • (DateTime)


71
72
73
# File 'app/services/workarea/listrak/models/list.rb', line 71

def create_date
  DateTime.strptime(hash["createDate"], '%FT%T')
end

Whether browser link is enabled.

Returns:

  • (Boolean)


79
80
81
# File 'app/services/workarea/listrak/models/list.rb', line 79

def enable_browser_link
  hash["enableBrowserLink"]
end

#enable_double_opt_inBoolean

Whether double opt-in is enabled.

Returns:

  • (Boolean)


87
88
89
# File 'app/services/workarea/listrak/models/list.rb', line 87

def enable_double_opt_in
  hash["enableDoubleOptIn"]
end

#enable_dynamic_contentBoolean

Whether dynamic content is enabled.

Returns:

  • (Boolean)


95
96
97
# File 'app/services/workarea/listrak/models/list.rb', line 95

def enable_dynamic_content
  hash["enableDynamicContent"]
end

#enable_google_analyticsBoolean

Whether Google Analytics is enabled.

Returns:

  • (Boolean)


103
104
105
# File 'app/services/workarea/listrak/models/list.rb', line 103

def enable_google_analytics
  hash["enableGoogleAnalytics"]
end

#enable_internationalizationBoolean

Whether internationalization is enabled.

Returns:

  • (Boolean)


111
112
113
# File 'app/services/workarea/listrak/models/list.rb', line 111

def enable_internationalization
  hash["enableInternationalization"]
end

#enable_list_hygieneBoolean

Whether list hygiene is enabled.

Returns:

  • (Boolean)


119
120
121
# File 'app/services/workarea/listrak/models/list.rb', line 119

def enable_list_hygiene
  hash["enableListHygiene"]
end

#enable_list_removal_headerObject

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

Whether the list removal link is automatically included.

Returns:

  • (Boolean)


135
136
137
# File 'app/services/workarea/listrak/models/list.rb', line 135

def enable_list_removal_link
  hash["enableListRemovalLink"]
end

#enable_listrak_analyticsBoolean

Whether Listrak Analytics is enabled.

Returns:

  • (Boolean)


142
143
144
# File 'app/services/workarea/listrak/models/list.rb', line 142

def enable_listrak_analytics
  hash["enableListrakAnalytics"]
end

#enable_spam_score_personalizationBoolean

Whether personalization is available in Spam Score.

Returns:

  • (Boolean)


150
151
152
# File 'app/services/workarea/listrak/models/list.rb', line 150

def enable_spam_score_personalization
  hash["enableSpamScorePersonalization"]
end

#enable_to_name_personalizationBoolean

Whether personalization is enabled for a recipient’s To name.

Returns:

  • (Boolean)


158
159
160
# File 'app/services/workarea/listrak/models/list.rb', line 158

def enable_to_name_personalization
  hash["enableToNamePersonalization"]
end

#folder_idInteger

Identifier of the folder associated with the list.

Returns:

  • (Integer)


31
32
33
# File 'app/services/workarea/listrak/models/list.rb', line 31

def folder_id
  hash["folderId"]
end

#from_emailString

The From email address used by default when sending messages.

Returns:

  • (String)


166
167
168
# File 'app/services/workarea/listrak/models/list.rb', line 166

def from_email
  hash["fromEmail"]
end

#from_nameString

The From name used by default when sending messages.

Returns:

  • (String)


174
175
176
# File 'app/services/workarea/listrak/models/list.rb', line 174

def from_name
  hash["fromName"]
end

#google_tracking_domainsArray<String>

Google tracking domains of the list.

Returns:

  • (Array<String>)


182
183
184
# File 'app/services/workarea/listrak/models/list.rb', line 182

def google_tracking_domains
  hash["googleTrackingDomains"]
end

#idInteger

Identifier used to locate the list.

Returns:

  • (Integer)


15
16
17
# File 'app/services/workarea/listrak/models/list.rb', line 15

def id
  hash["listId"]
end

#ip_pool_idInteger

Identifier of the IP pool associated with the list.

Returns:

  • (Integer)


39
40
41
# File 'app/services/workarea/listrak/models/list.rb', line 39

def ip_pool_id
  hash["ipPoolId"]
end

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_aliasString

Alias domain for media in the list’s messages.

Returns:

  • (String)


198
199
200
# File 'app/services/workarea/listrak/models/list.rb', line 198

def media_domain_alias
  hash["mediaDomainAlias"]
end

#nameString

Name of the list.

Returns:

  • (String)


23
24
25
# File 'app/services/workarea/listrak/models/list.rb', line 23

def name
  hash["listName"]
end