Class: Messenger::Templates::QuickReplies
- Inherits:
-
Object
- Object
- Messenger::Templates::QuickReplies
- Includes:
- Components::Element
- Defined in:
- lib/messenger/components/templates/quick_replies.rb
Constant Summary collapse
- ATTRIBUTES =
%w(text quick_replies).freeze
Instance Attribute Summary collapse
-
#quick_replies ⇒ Object
Returns the value of attribute quick_replies.
-
#text ⇒ Object
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(text:, quick_replies:) ⇒ QuickReplies
constructor
A new instance of QuickReplies.
Methods included from Components::Element
Constructor Details
#initialize(text:, quick_replies:) ⇒ QuickReplies
Returns a new instance of QuickReplies.
12 13 14 15 |
# File 'lib/messenger/components/templates/quick_replies.rb', line 12 def initialize(text:, quick_replies:) @text = text @quick_replies = build_elements(quick_replies) end |
Instance Attribute Details
#quick_replies ⇒ Object
Returns the value of attribute quick_replies.
8 9 10 |
# File 'lib/messenger/components/templates/quick_replies.rb', line 8 def quick_replies @quick_replies end |
#text ⇒ Object
Returns the value of attribute text.
8 9 10 |
# File 'lib/messenger/components/templates/quick_replies.rb', line 8 def text @text end |