Class: RubyCord::User::Activity::Button

Inherits:
DiscordModel show all
Defined in:
lib/rubycord/user/activity.rb

Overview

Represents a button of an activity.

Instance Attribute Summary collapse

Method Summary

Methods inherited from DiscordModel

#==, #eql?, #inspect

Instance Attribute Details

#labelString (readonly) Also known as: text

Returns The text of the button.

Returns:

  • (String)

    The text of the button.



232
233
234
# File 'lib/rubycord/user/activity.rb', line 232

def label
  @label
end

#urlString (readonly)

Returns The URL of the button.

Returns:

  • (String)

    The URL of the button.



234
235
236
# File 'lib/rubycord/user/activity.rb', line 234

def url
  @url
end