Module: Messenger

Defined in:
lib/messenger-ruby.rb,
lib/messenger/client.rb,
lib/messenger/engine.rb,
lib/messenger/params.rb,
lib/messenger/request.rb,
lib/messenger/version.rb,
lib/messenger/configuration.rb,
lib/messenger/parameters/read.rb,
lib/messenger/parameters/entry.rb,
lib/messenger/parameters/optin.rb,
lib/messenger/components/element.rb,
lib/messenger/parameters/message.rb,
lib/messenger/parameters/callback.rb,
lib/messenger/parameters/delivery.rb,
lib/messenger/parameters/postback.rb,
lib/messenger/parameters/referral.rb,
lib/messenger/parameters/messaging.rb,
lib/messenger/components/attachment.rb,
lib/messenger/parameters/attachment.rb,
lib/messenger/parameters/quick_reply.rb,
lib/messenger/components/elements/text.rb,
lib/messenger/components/elements/image.rb,
lib/messenger/components/elements/video.rb,
lib/messenger/components/elements/bubble.rb,
lib/messenger/components/elements/button.rb,
lib/messenger/parameters/account_linking.rb,
lib/messenger/components/templates/buttons.rb,
lib/messenger/components/templates/generic.rb,
lib/messenger/components/templates/receipt.rb,
lib/messenger/components/elements/quick_reply.rb,
app/controllers/messenger/messenger_controller.rb,
lib/messenger/components/elements/receipt/item.rb,
lib/messenger/components/elements/receipt/order.rb,
lib/messenger/components/elements/sender_action.rb,
lib/messenger/components/templates/quick_replies.rb,
lib/messenger/components/elements/receipt/address.rb,
lib/messenger/components/elements/receipt/summary.rb,
lib/messenger/components/elements/receipt/adjustment.rb

Defined Under Namespace

Modules: Components, Elements, Parameters, Templates Classes: Client, Configuration, Engine, MessengerController, Params, Request

Constant Summary collapse

VERSION =
"1.2.1"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configObject

Returns the value of attribute config.



6
7
8
# File 'lib/messenger-ruby.rb', line 6

def config
  @config
end

Class Method Details

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

Yields:



12
13
14
# File 'lib/messenger-ruby.rb', line 12

def configure
  yield(config)
end

.resetObject



16
17
18
# File 'lib/messenger-ruby.rb', line 16

def reset
  @config = Configuration.new
end