Class: Minesweeper::BoardParams

Inherits:
Sequel::Model
  • Object
show all
Defined in:
lib/minesweeper/board_params.rb

Instance Method Summary collapse

Instance Method Details

#validateObject



18
19
20
21
22
# File 'lib/minesweeper/board_params.rb', line 18

def validate
  super
  validates_integer %i[height width]
  validates_includes %w[beginner advanced expert], :level
end