Class: WordleDictionaryBackup

Inherits:
ApplicationRecord show all
Defined in:
app/models/wordle_dictionary_backup.rb

Overview

This model represents the Backup Dictionary used by Wordle. It is loaded once at the time of creation and never modified. It is used to reset the active Wordledictionary to a default version when requested by a Puzzle Setter

Raises:

  • (ValidationError)

    if the word is missing, not 5 characters or already exists

Instance Attribute Summary collapse

Instance Attribute Details

#is_valid_solutionBoolean

Specifies whether the word is a valid solution or not

Returns:

  • (Boolean)

    the current value of is_valid_solution



9
10
11
# File 'app/models/wordle_dictionary_backup.rb', line 9

def is_valid_solution
  @is_valid_solution
end

#wordString

The 5 letter Word

Returns:

  • (String)

    the current value of word



9
10
11
# File 'app/models/wordle_dictionary_backup.rb', line 9

def word
  @word
end