Class: Discordrb::Components::Section

Inherits:
Object
  • Object
show all
Defined in:
lib/discordrb/data/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.



260
261
262
# File 'lib/discordrb/data/component.rb', line 260

def accessory
  @accessory
end

#componentsArray<Component> (readonly)

Returns the child components of the section.

Returns:

  • (Array<Component>)

    the child components of the section.



263
264
265
# File 'lib/discordrb/data/component.rb', line 263

def components
  @components
end

#idInteger (readonly)

Returns the numeric identifier of the section.

Returns:

  • (Integer)

    the numeric identifier of the section.



257
258
259
# File 'lib/discordrb/data/component.rb', line 257

def id
  @id
end