Class: Workarea::Listrak::BogusEmailApi::Events

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

Instance Method Summary collapse

Instance Method Details

#all(_list_id) ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/workarea/listrak/bogus_email_api/events.rb', line 4

def all(_list_id)
  events = [
    {
      "eventId" => 12714,
      "eventName" => "Test",
      "eventGroupId" => 0,
      "status" => "Active"
    },
    {
      "eventId" => 12715,
      "eventName" => "footer signup",
      "eventGroupId" => 0,
      "status" => "Active"
    }
  ]
  events.map { |event| Listrak::Models::Event.new event }
end