Class: OnyxCord::Components::RadioGroup

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

Overview

A grouping of radio buttons in a modal.

Instance Attribute Summary collapse

Instance Attribute Details

#custom_idString (readonly)

Returns the developer-defined identifier of the radio group.

Returns:

  • (String)

    the developer-defined identifier of the radio group.



539
540
541
# File 'lib/onyxcord/models/component.rb', line 539

def custom_id
  @custom_id
end

#idInteger (readonly)

Returns the numeric identifier of the radio group.

Returns:

  • (Integer)

    the numeric identifier of the radio group.



533
534
535
# File 'lib/onyxcord/models/component.rb', line 533

def id
  @id
end

#valueString? (readonly)

Returns whether or not a radio button was selected.

Returns:

  • (String, nil)

    whether or not a radio button was selected.



536
537
538
# File 'lib/onyxcord/models/component.rb', line 536

def value
  @value
end