Class: Discordrb::Games::Game

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hash) ⇒ Game

Returns a new instance of Game.



5
6
7
8
9
# File 'lib/discordrb/games.rb', line 5

def initialize(hash)
  @id = hash[:id]
  @name = hash[:name]
  @executables = hash[:executables]
end

Instance Attribute Details

#executablesObject (readonly)

Returns the value of attribute executables.



3
4
5
# File 'lib/discordrb/games.rb', line 3

def executables
  @executables
end

#idObject (readonly)

Returns the value of attribute id.



3
4
5
# File 'lib/discordrb/games.rb', line 3

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/discordrb/games.rb', line 3

def name
  @name
end