Class: TTT::MoveHistory

Inherits:
Object
  • Object
show all
Defined in:
lib/ttt/move_history.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ MoveHistory

Returns a new instance of MoveHistory.



4
5
6
7
# File 'lib/ttt/move_history.rb', line 4

def initialize(options)
  @side = options.fetch(:side)
  @move = options.fetch(:move)
end

Instance Attribute Details

#moveObject (readonly)

Returns the value of attribute move.



3
4
5
# File 'lib/ttt/move_history.rb', line 3

def move
  @move
end

#sideObject (readonly)

Returns the value of attribute side.



3
4
5
# File 'lib/ttt/move_history.rb', line 3

def side
  @side
end