class Discorb::Presence::Activity::Button
Represents a button of an activity.
Attributes
label[R]
@return [String] The text of the button.
text[R]
@return [String] The text of the button.
url[R]
@return [String] The URL of the button.
Public Class Methods
new(data)
click to toggle source
@!visibility private
# File lib/discorb/presence.rb, line 248 def initialize(data) @label = data[0] @url = data[1] end