Class: RubyCord::User::Activity::Button
- Inherits:
-
DiscordModel
- Object
- DiscordModel
- RubyCord::User::Activity::Button
- Defined in:
- lib/rubycord/user/activity.rb
Overview
Represents a button of an activity.
Instance Attribute Summary collapse
-
#label ⇒ String
(also: #text)
readonly
The text of the button.
-
#url ⇒ String
readonly
The URL of the button.
Method Summary
Methods inherited from DiscordModel
Instance Attribute Details
#label ⇒ String (readonly) Also known as: text
Returns The text of the button.
232 233 234 |
# File 'lib/rubycord/user/activity.rb', line 232 def label @label end |
#url ⇒ String (readonly)
Returns The URL of the button.
234 235 236 |
# File 'lib/rubycord/user/activity.rb', line 234 def url @url end |