Class: Discordrb::Games::DummyGame
- Inherits:
-
Object
- Object
- Discordrb::Games::DummyGame
- Defined in:
- lib/discordrb/games.rb
Overview
A dummy game for when the user isn't playing a registered game
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(name) ⇒ DummyGame
constructor
A new instance of DummyGame.
Constructor Details
#initialize(name) ⇒ DummyGame
Returns a new instance of DummyGame.
38 39 40 41 42 |
# File 'lib/discordrb/games.rb', line 38 def initialize(name) @id = 0 @executables = [] @name = name end |
Instance Attribute Details
#executables ⇒ Object (readonly)
Returns the value of attribute executables.
37 38 39 |
# File 'lib/discordrb/games.rb', line 37 def executables @executables end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
37 38 39 |
# File 'lib/discordrb/games.rb', line 37 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
37 38 39 |
# File 'lib/discordrb/games.rb', line 37 def name @name end |