Class: Stealth::Services::Facebook::PostbackEvent

Inherits:
Object
  • Object
show all
Defined in:
lib/stealth/services/facebook/events/postback_event.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(service_message:, params:) ⇒ PostbackEvent

Returns a new instance of PostbackEvent.



12
13
14
15
# File 'lib/stealth/services/facebook/events/postback_event.rb', line 12

def initialize(service_message:, params:)
  @service_message = service_message
  @params = params
end

Instance Attribute Details

#paramsObject (readonly)

Returns the value of attribute params.



10
11
12
# File 'lib/stealth/services/facebook/events/postback_event.rb', line 10

def params
  @params
end

#service_messageObject (readonly)

Returns the value of attribute service_message.



10
11
12
# File 'lib/stealth/services/facebook/events/postback_event.rb', line 10

def service_message
  @service_message
end

Instance Method Details

#processObject



17
18
19
20
# File 'lib/stealth/services/facebook/events/postback_event.rb', line 17

def process
  fetch_payload
  fetch_referral
end