Class: PostProxy::QuickReply
Overview
A tappable chip above the participant's composer, gone once tapped.
Facebook and Instagram only; up to 13 per send. content_type is optional
on send (only "text" is accepted) and always present on responses.
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(**attrs) ⇒ QuickReply
constructor
A new instance of QuickReply.
- #to_h ⇒ Object
Constructor Details
#initialize(**attrs) ⇒ QuickReply
Returns a new instance of QuickReply.
438 439 440 441 |
# File 'lib/postproxy/types.rb', line 438 def initialize(**attrs) @content_type = nil super end |
Instance Attribute Details
#content_type ⇒ Object
Returns the value of attribute content_type.
436 437 438 |
# File 'lib/postproxy/types.rb', line 436 def content_type @content_type end |
#payload ⇒ Object
Returns the value of attribute payload.
436 437 438 |
# File 'lib/postproxy/types.rb', line 436 def payload @payload end |
#title ⇒ Object
Returns the value of attribute title.
436 437 438 |
# File 'lib/postproxy/types.rb', line 436 def title @title end |
Instance Method Details
#to_h ⇒ Object
443 444 445 |
# File 'lib/postproxy/types.rb', line 443 def to_h { content_type: @content_type, title: @title, payload: @payload }.compact end |