Class: Discorb::Presence::Activity::Button

Inherits:
DiscordModel show all
Defined in:
lib/discorb/presence.rb

Overview

Represents a button of an activity.

Instance Attribute Summary collapse

Method Summary

Methods inherited from DiscordModel

#==, #eql?, #inspect

Instance Attribute Details

#label -> String (readonly) Also known as: text

Returns The text of the button.

Returns:

  • (String)

    The text of the button.



273
274
275
# File 'lib/discorb/presence.rb', line 273

def label
  @label
end

#url -> String (readonly)

Returns The URL of the button.

Returns:

  • (String)

    The URL of the button.



275
276
277
# File 'lib/discorb/presence.rb', line 275

def url
  @url
end