Class: Discorb::Message::Activity
- Inherits:
-
DiscordModel
- Object
- DiscordModel
- Discorb::Message::Activity
- Defined in:
- lib/discorb/message_meta.rb
Overview
Represents a activity of message.
Instance Attribute Summary collapse
-
#name -> String
readonly
The name of activity.
-
#type -> Symbol
readonly
The type of activity.
Instance Method Summary collapse
Methods inherited from DiscordModel
Instance Attribute Details
#name -> String (readonly)
Returns The name of activity.
158 159 160 |
# File 'lib/discorb/message_meta.rb', line 158 def name @name end |
#type -> Symbol (readonly)
Returns The type of activity.
160 161 162 |
# File 'lib/discorb/message_meta.rb', line 160 def type @type end |
Instance Method Details
#inspect -> Object
182 183 184 |
# File 'lib/discorb/message_meta.rb', line 182 def inspect "<#{self.class.name} #{@name} type=#{@type}>" end |