Class: OnyxCord::Components::RadioGroup
- Inherits:
-
Object
- Object
- OnyxCord::Components::RadioGroup
- Defined in:
- lib/onyxcord/models/component.rb
Overview
A grouping of radio buttons in a modal.
Instance Attribute Summary collapse
-
#custom_id ⇒ String
readonly
The developer-defined identifier of the radio group.
-
#id ⇒ Integer
readonly
The numeric identifier of the radio group.
-
#value ⇒ String?
readonly
Whether or not a radio button was selected.
Instance Attribute Details
#custom_id ⇒ String (readonly)
Returns 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 |
#id ⇒ Integer (readonly)
Returns the numeric identifier of the radio group.
533 534 535 |
# File 'lib/onyxcord/models/component.rb', line 533 def id @id end |
#value ⇒ String? (readonly)
Returns whether or not a radio button was selected.
536 537 538 |
# File 'lib/onyxcord/models/component.rb', line 536 def value @value end |