Class: Artaius::Plugins::Mixer::Game

Inherits:
Struct
  • Object
show all
Defined in:
lib/artaius/plugins/mixer.rb

Overview

Internal: Create a new game.

players - The Enumerable of players (Set or Array). limit - The Integer, describes the needed quantity of players, in

order to start the game.

time - The Time, when the game was created.

Returns Game Struct object.

Instance Attribute Summary collapse

Instance Attribute Details

#limitObject

Returns the value of attribute limit

Returns:

  • (Object)

    the current value of limit



15
16
17
# File 'lib/artaius/plugins/mixer.rb', line 15

def limit
  @limit
end

#playersObject

Returns the value of attribute players

Returns:

  • (Object)

    the current value of players



15
16
17
# File 'lib/artaius/plugins/mixer.rb', line 15

def players
  @players
end

#timeObject

Returns the value of attribute time

Returns:

  • (Object)

    the current value of time



15
16
17
# File 'lib/artaius/plugins/mixer.rb', line 15

def time
  @time
end