Class: Discordrb::Games::DummyGame

Inherits:
Object
  • Object
show all
Defined in:
lib/discordrb/games.rb

Overview

A dummy game for when the user isn't playing a registered game

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#executablesObject (readonly)

Returns the value of attribute executables.



37
38
39
# File 'lib/discordrb/games.rb', line 37

def executables
  @executables
end

#idObject (readonly)

Returns the value of attribute id.



37
38
39
# File 'lib/discordrb/games.rb', line 37

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



37
38
39
# File 'lib/discordrb/games.rb', line 37

def name
  @name
end