Class: Messenger::Parameters::Postback

Inherits:
Object
  • Object
show all
Includes:
Callback
Defined in:
lib/messenger/parameters/postback.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Callback

#type

Constructor Details

#initialize(payload:) ⇒ Postback

Returns a new instance of Postback.



8
9
10
# File 'lib/messenger/parameters/postback.rb', line 8

def initialize(payload:)
  @payload = payload
end

Instance Attribute Details

#payloadObject

Returns the value of attribute payload.



6
7
8
# File 'lib/messenger/parameters/postback.rb', line 6

def payload
  @payload
end