Class: MessageQuickly::Messaging::PostbackEvent

Inherits:
Event
  • Object
show all
Defined in:
lib/message_quickly/messaging/postback_event.rb

Instance Attribute Summary collapse

Attributes inherited from Event

#entry, #recipient, #sender, #timestamp

Instance Method Summary collapse

Constructor Details

#initialize(params = {}) ⇒ PostbackEvent

Returns a new instance of PostbackEvent.



9
10
11
12
# File 'lib/message_quickly/messaging/postback_event.rb', line 9

def initialize(params = {})
  initialize_params(params['postback'])
  super(params)
end

Instance Attribute Details

#payloadObject (readonly)

Returns the value of attribute payload.



7
8
9
# File 'lib/message_quickly/messaging/postback_event.rb', line 7

def payload
  @payload
end

Instance Method Details

#webhook_nameObject



14
15
16
# File 'lib/message_quickly/messaging/postback_event.rb', line 14

def webhook_name
  :messaging_postbacks
end