Module: Pont::ProspectEvent

Defined in:
lib/pont/prospect_event.rb

Overview

ProspectEvent contains methods for dealing with emails related to prospect events

Class Method Summary collapse

Class Method Details

.email_events_by_account_id(account_id) ⇒ Object



8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/pont/prospect_event.rb', line 8

def ()
  prospect_events =
    prospect_events_for_rails() ||
    prospect_events_for_padrino()

  prospect_events.map do |email|
    {
      sent_dt: email[:event_dt],
      subject: email[:payload]['subject'],
      status: email[:event_type]
    }
  end
end