Class: Codebreakergem::Difficulty

Inherits:
Object
  • Object
show all
Defined in:
lib/classes/difficulties/difficulty.rb

Direct Known Subclasses

Easy, Hell, Medium

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeDifficulty

Returns a new instance of Difficulty.

Raises:

  • (NotImplementedError)


8
9
10
# File 'lib/classes/difficulties/difficulty.rb', line 8

def initialize
  raise NotImplementedError
end

Instance Attribute Details

#attemptsObject

Returns the value of attribute attempts.



6
7
8
# File 'lib/classes/difficulties/difficulty.rb', line 6

def attempts
  @attempts
end

#hintsObject

Returns the value of attribute hints.



6
7
8
# File 'lib/classes/difficulties/difficulty.rb', line 6

def hints
  @hints
end

#orderObject (readonly)

Returns the value of attribute order.



5
6
7
# File 'lib/classes/difficulties/difficulty.rb', line 5

def order
  @order
end

#titleObject (readonly)

Returns the value of attribute title.



5
6
7
# File 'lib/classes/difficulties/difficulty.rb', line 5

def title
  @title
end