Class: OnyxCord::Components::Section

Inherits:
Object
  • Object
show all
Defined in:
lib/onyxcord/models/component.rb

Overview

A grouping of components with a contextual accessory.

Instance Attribute Summary collapse

Instance Attribute Details

#accessoryComponent (readonly)

Returns the contextual accessory of the section.

Returns:

  • (Component)

    the contextual accessory of the section.



266
267
268
# File 'lib/onyxcord/models/component.rb', line 266

def accessory
  @accessory
end

#componentsArray<Component> (readonly)

Returns the child components of the section.

Returns:

  • (Array<Component>)

    the child components of the section.



269
270
271
# File 'lib/onyxcord/models/component.rb', line 269

def components
  @components
end

#idInteger (readonly)

Returns the numeric identifier of the section.

Returns:

  • (Integer)

    the numeric identifier of the section.



263
264
265
# File 'lib/onyxcord/models/component.rb', line 263

def id
  @id
end