Class: SetMove
- Inherits:
-
Object
- Object
- SetMove
- Includes:
- HasHints
- Defined in:
- lib/software_challenge_client/set_move.rb
Instance Attribute Summary collapse
-
#destination ⇒ Object
readonly
Returns the value of attribute destination.
-
#piece ⇒ Object
readonly
Returns the value of attribute piece.
Attributes included from HasHints
Instance Method Summary collapse
-
#initialize(piece, destination) ⇒ SetMove
constructor
A new instance of SetMove.
Methods included from HasHints
Constructor Details
#initialize(piece, destination) ⇒ SetMove
Returns a new instance of SetMove.
10 11 12 13 14 |
# File 'lib/software_challenge_client/set_move.rb', line 10 def initialize(piece, destination) @piece = piece @destination = destination @hints = [] end |
Instance Attribute Details
#destination ⇒ Object (readonly)
Returns the value of attribute destination.
8 9 10 |
# File 'lib/software_challenge_client/set_move.rb', line 8 def destination @destination end |
#piece ⇒ Object (readonly)
Returns the value of attribute piece.
7 8 9 |
# File 'lib/software_challenge_client/set_move.rb', line 7 def piece @piece end |