Class: OnyxCord::Components::Section
- Inherits:
-
Object
- Object
- OnyxCord::Components::Section
- Defined in:
- lib/onyxcord/models/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.
266 267 268 |
# File 'lib/onyxcord/models/component.rb', line 266 def accessory @accessory end |
#components ⇒ Array<Component> (readonly)
Returns the child components of the section.
269 270 271 |
# File 'lib/onyxcord/models/component.rb', line 269 def components @components end |
#id ⇒ Integer (readonly)
Returns the numeric identifier of the section.
263 264 265 |
# File 'lib/onyxcord/models/component.rb', line 263 def id @id end |