Class: Workarea::Listrak::BogusEmailApi::Lists

Inherits:
Object
  • Object
show all
Defined in:
lib/workarea/listrak/bogus_email_api/lists.rb

Instance Method Summary collapse

Instance Method Details

#allObject



4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# File 'lib/workarea/listrak/bogus_email_api/lists.rb', line 4

def all
  lists = [
    {
      "listId" => 349956,
      "listName" => "My First List",
      "folderId" => 0,
      "ipPoolId" => 11,
      "bounceDomainAlias" => "",
      "bounceHandling" => "Standard",
      "bounceUnsubscribeCount" => 5,
      "createDate" => "2015-08-31T16:02:41.65",
      "enableBrowserLink" => false,
      "enableDoubleOptIn" => false,
      "enableDynamicContent" => false,
      "enableGoogleAnalytics" => false,
      "enableInternationalization" => false,
      "enableListHygiene" => true,
      "enableListRemovalHeader" => true,
      "enableListRemovalLink" => true,
      "enableListrakAnalytics" => false,
      "enableSpamScorePersonalization" => false,
      "enableToNamePersonalization" => false,
      "fromEmail" => "",
      "fromName" => "",
      "googleTrackingDomains" => [],
      "linkDomainAlias" => "",
      "mediaDomainAlias" => ""
    },
    {
      "listId" => 349984,
      "listName" => "gem-testing",
      "folderId" => 0,
      "ipPoolId" => 11,
      "bounceDomainAlias" => "",
      "bounceHandling" => "Standard",
      "bounceUnsubscribeCount" => 5,
      "createDate" => "2015-09-02T14:42:38.91",
      "enableBrowserLink" => false,
      "enableDoubleOptIn" => false,
      "enableDynamicContent" => false,
      "enableGoogleAnalytics" => false,
      "enableInternationalization" => false,
      "enableListHygiene" => true,
      "enableListRemovalHeader" => true,
      "enableListRemovalLink" => true,
      "enableListrakAnalytics" => false,
      "enableSpamScorePersonalization" => false,
      "enableToNamePersonalization" => false,
      "fromEmail" => "[email protected]",
      "fromName" => "WebLinc Developer",
      "googleTrackingDomains" => [],
      "linkDomainAlias" => "",
      "mediaDomainAlias" => ""
    }
  ]
  lists.map { |list| Listrak::Models::List.new list }
end