Class: Bobot::Event::Postback
- Inherits:
-
Object
- Object
- Bobot::Event::Postback
show all
- Includes:
- Common
- Defined in:
- lib/bobot/events/postback.rb
Instance Attribute Summary
Attributes included from Common
#messaging, #page
Instance Method Summary
collapse
Methods included from Common
#initialize, #mark_as_seen, #prior_message, #recipient, #reply, #reply_with_attachment, #reply_with_audio, #reply_with_buttons, #reply_with_file, #reply_with_generic, #reply_with_image, #reply_with_quick_replies, #reply_with_text, #reply_with_video, #reply_with_youtube_video, #send_pass_thread_control, #send_take_thread_control, #sender, #sender_action, #sent_at, #show_typing
Instance Method Details
#payload ⇒ Object
6
7
8
|
# File 'lib/bobot/events/postback.rb', line 6
def payload
@messaging['postback']['payload']
end
|
#referral ⇒ Object
14
15
16
17
|
# File 'lib/bobot/events/postback.rb', line 14
def referral
return if @messaging['postback']['referral'].nil?
@referral ||= Referral::Referral.new(@messaging['postback']['referral'])
end
|
#title ⇒ Object
10
11
12
|
# File 'lib/bobot/events/postback.rb', line 10
def title
@messaging['postback']['title']
end
|