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

#labelString (readonly) Also known as: text

Returns The text of the button.

Returns:

  • (String)

    The text of the button.



281
282
283
# File 'lib/discorb/presence.rb', line 281

def label
  @label
end

#urlString (readonly)

Returns The URL of the button.

Returns:

  • (String)

    The URL of the button.



283
284
285
# File 'lib/discorb/presence.rb', line 283

def url
  @url
end