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

#accessory ⇒ Component (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

#components ⇒ Array<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

#id ⇒ Integer (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