Class: Discordrb::Components::Section
- Inherits:
-
Object
- Object
- Discordrb::Components::Section
- Defined in:
- lib/discordrb/data/component.rb
Overview
A grouping of components with a contextual accessory.
Instance Attribute Summary collapse
-
#accessory ⇒ Component
readonly
The contextual accessory of the section.
-
#components ⇒ Array<Component>
readonly
The child components of the section.
-
#id ⇒ Integer
readonly
The numeric identifier of the section.
Instance Attribute Details
#accessory ⇒ Component (readonly)
Returns the contextual accessory of the section.
260 261 262 |
# File 'lib/discordrb/data/component.rb', line 260 def accessory @accessory end |
#components ⇒ Array<Component> (readonly)
Returns the child components of the section.
263 264 265 |
# File 'lib/discordrb/data/component.rb', line 263 def components @components end |
#id ⇒ Integer (readonly)
Returns the numeric identifier of the section.
257 258 259 |
# File 'lib/discordrb/data/component.rb', line 257 def id @id end |