Class: ChatSDK::Cards::SelectContext
- Inherits:
-
Object
- Object
- ChatSDK::Cards::SelectContext
- Defined in:
- lib/chat_sdk/cards/select_context.rb
Instance Attribute Summary collapse
-
#nodes ⇒ Object
readonly
Returns the value of attribute nodes.
Instance Method Summary collapse
-
#initialize ⇒ SelectContext
constructor
A new instance of SelectContext.
- #option(text, value:, description: nil) ⇒ Object
Constructor Details
#initialize ⇒ SelectContext
Returns a new instance of SelectContext.
8 9 10 |
# File 'lib/chat_sdk/cards/select_context.rb', line 8 def initialize @nodes = [] end |
Instance Attribute Details
#nodes ⇒ Object (readonly)
Returns the value of attribute nodes.
6 7 8 |
# File 'lib/chat_sdk/cards/select_context.rb', line 6 def nodes @nodes end |