Class: OnyxCord::Components::Label

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

Overview

A parent component for interactive modal components.

Instance Attribute Summary collapse

Instance Attribute Details

#componentComponent (readonly)

Returns the interactive component of the label.

Returns:

  • (Component)

    the interactive component of the label.



498
499
500
# File 'lib/onyxcord/models/component.rb', line 498

def component
  @component
end

#descriptionString? (readonly)

Returns the optional description text for the label.

Returns:

  • (String, nil)

    the optional description text for the label.



495
496
497
# File 'lib/onyxcord/models/component.rb', line 495

def description
  @description
end

#idInteger (readonly)

Returns the numeric identifier of the label.

Returns:

  • (Integer)

    the numeric identifier of the label.



489
490
491
# File 'lib/onyxcord/models/component.rb', line 489

def id
  @id
end

#labelString (readonly)

Returns the visible label text for the modal component.

Returns:

  • (String)

    the visible label text for the modal component.



492
493
494
# File 'lib/onyxcord/models/component.rb', line 492

def label
  @label
end