Class: Discorb::Message::Activity

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

Overview

Represents a activity of message.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from DiscordModel

#==, #eql?

Instance Attribute Details

#name -> String (readonly)

Returns The name of activity.

Returns:

  • (String)

    The name of activity.



157
158
159
# File 'lib/discorb/message_meta.rb', line 157

def name
  @name
end

#type -> Symbol (readonly)

Returns The type of activity.

Returns:

  • (Symbol)

    The type of activity.



159
160
161
# File 'lib/discorb/message_meta.rb', line 159

def type
  @type
end

Instance Method Details

#inspect -> Object



181
182
183
# File 'lib/discorb/message_meta.rb', line 181

def inspect
  "<#{self.class.name} #{@name} type=#{@type}>"
end