Module: Fb::Messenger

Defined in:
lib/fb/messenger.rb,
lib/fb/messenger/client.rb,
lib/fb/messenger/version.rb,
lib/fb/messenger/receiver.rb,
lib/fb/messenger/events/base.rb,
lib/fb/messenger/configuration.rb,
lib/fb/messenger/events/message.rb,
lib/fb/messenger/events/delivery.rb,
lib/fb/messenger/events/postback.rb,
lib/fb/messenger/subscribers/base.rb,
lib/fb/messenger/templates/button.rb,
lib/fb/messenger/templates/generic.rb,
lib/fb/messenger/templates/receipt.rb,
lib/fb/messenger/templates/generic_item.rb,
lib/fb/messenger/templates/receipt_item.rb

Defined Under Namespace

Modules: Event, Subscriber, Template Classes: Client, Configuration, Receiver

Constant Summary collapse

BASE_URL =
'https://graph.facebook.com/v2.6'.freeze
VERSION =
"0.1.1"

Class Method Summary collapse

Class Method Details

.configObject



25
26
27
# File 'lib/fb/messenger.rb', line 25

def config
  @config ||= Fb::Messenger::Configuration.new
end

.configure {|config| ... } ⇒ Object

Yields:



21
22
23
# File 'lib/fb/messenger.rb', line 21

def configure
  yield config
end