Class: MessageQuickly::Messaging::QuickReply
- Defined in:
- lib/message_quickly/messaging/quick_reply.rb
Instance Attribute Summary collapse
-
#content_type ⇒ Object
Returns the value of attribute content_type.
-
#payload ⇒ Object
Returns the value of attribute payload.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ QuickReply
constructor
A new instance of QuickReply.
- #to_hash ⇒ Object
Constructor Details
#initialize(params = {}) ⇒ QuickReply
Returns a new instance of QuickReply.
7 8 9 10 |
# File 'lib/message_quickly/messaging/quick_reply.rb', line 7 def initialize(params = {}) params['content_type'] ||= 'text' super(params) end |
Instance Attribute Details
#content_type ⇒ Object
Returns the value of attribute content_type.
5 6 7 |
# File 'lib/message_quickly/messaging/quick_reply.rb', line 5 def content_type @content_type end |
#payload ⇒ Object
Returns the value of attribute payload.
5 6 7 |
# File 'lib/message_quickly/messaging/quick_reply.rb', line 5 def payload @payload end |
#title ⇒ Object
Returns the value of attribute title.
5 6 7 |
# File 'lib/message_quickly/messaging/quick_reply.rb', line 5 def title @title end |
Instance Method Details
#to_hash ⇒ Object
12 13 14 |
# File 'lib/message_quickly/messaging/quick_reply.rb', line 12 def to_hash { content_type: content_type, title: title, payload: payload } end |