class Codebreaker::Difficulty

Constants

LIST

Attributes

attempts[R]
difficulty[R]
hints[R]
title[R]

Public Class Methods

new(difficulty) click to toggle source
# File lib/codebreaker/difficulty.rb, line 11
def initialize(difficulty)
  Validate.include?(LIST.keys, difficulty.to_sym)
  difficulty = LIST[difficulty.to_sym]
  @attempts = difficulty[:attempts]
  @hints = difficulty[:hints]
  @title = difficulty[:title]
end