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

#nameString (readonly)

Returns The name of activity.

Returns:

  • (String)

    The name of activity.



168
169
170
# File 'lib/discorb/message_meta.rb', line 168

def name
  @name
end

#typeSymbol (readonly)

Returns The type of activity.

Returns:

  • (Symbol)

    The type of activity.



170
171
172
# File 'lib/discorb/message_meta.rb', line 170

def type
  @type
end

Instance Method Details

#inspectObject



192
193
194
# File 'lib/discorb/message_meta.rb', line 192

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