Class: Discordrb::Games::Game
- Inherits:
-
Object
- Object
- Discordrb::Games::Game
- Defined in:
- lib/discordrb/games.rb
Overview
A game Discord uses in the “Playing game” status
Instance Attribute Summary collapse
-
#executables ⇒ Object
readonly
Returns the value of attribute executables.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(hash) ⇒ Game
constructor
A new instance of Game.
Constructor Details
#initialize(hash) ⇒ Game
Returns a new instance of Game.
9 10 11 12 13 |
# File 'lib/discordrb/games.rb', line 9 def initialize(hash) @id = hash[:id] @name = hash[:name] @executables = hash[:executables] end |
Instance Attribute Details
#executables ⇒ Object (readonly)
Returns the value of attribute executables.
7 8 9 |
# File 'lib/discordrb/games.rb', line 7 def executables @executables end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
7 8 9 |
# File 'lib/discordrb/games.rb', line 7 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
7 8 9 |
# File 'lib/discordrb/games.rb', line 7 def name @name end |