Class: LucidIntercom::InstalledEvent

Inherits:
Event
  • Object
show all
Defined in:
lib/lucid_intercom/installed_event.rb

Instance Method Summary collapse

Methods inherited from Event

#company, #company_custom, event, #event_name, #shopify_data, #user, #user_id

Instance Method Details

#app_dataHash

Returns:

  • (Hash)


25
26
27
28
29
# File 'lib/lucid_intercom/installed_event.rb', line 25

def app_data
  {
    plan: new_plan,
  }
end

#event_metadataHash

Returns:

  • (Hash)


15
16
17
18
19
20
# File 'lib/lucid_intercom/installed_event.rb', line 15

def 
  {
    company_id: company.to_h[:company_id],
    new_plan: new_plan,
  }
end

#new_planString

Returns e.g. ‘free’.

Returns:

  • (String)

    e.g. ‘free’



8
# File 'lib/lucid_intercom/installed_event.rb', line 8

param :new_plan