Class: Stealth::Services::Facebook::Setup

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

Class Method Summary collapse

Class Method Details

.triggerObject



13
14
15
16
17
18
# File 'lib/stealth/services/facebook/setup.rb', line 13

def trigger
  reply_handler = Stealth::Services::Facebook::ReplyHandler.new
  reply = reply_handler.messenger_profile
  client = Stealth::Services::Facebook::Client.new(reply: reply, endpoint: 'messenger_profile')
  client.transmit
end