Sha256: f330f65047b940699879a97ad1767ad6498d64c407beb3be5171111c6b69c665

Contents?: true

Size: 265 Bytes

Versions: 11

Compression:

Stored size: 265 Bytes

Contents

# frozen_string_literal: true

module Codebreaker
  class Player
    MAX_LENGTH_NAME = 20
    MIN_LENGTH_NAME = 3
    attr_reader :name

    def initialize(name)
      @name = name
    end

    def validate
      Verifier.verify_valid_name(@name)
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
codebreaker_rg_game-1.11 lib/codebreaker/entities/player.rb
codebreaker_rg_game-1.10 lib/codebreaker/entities/player.rb
codebreaker_rg_game-1.9 lib/codebreaker/entities/player.rb
codebreaker_rg_game-1.8 lib/codebreaker/entities/player.rb
codebreaker_rg_game-1.7 lib/codebreaker/entities/player.rb
codebreaker_rg_game-1.6 lib/codebreaker/entities/player.rb
codebreaker_rg_game-1.5 lib/codebreaker/entities/player.rb
codebreaker_rg_game-1.3 lib/codebreaker/entities/player.rb
codebreaker_rg_game-1.2 lib/codebreaker/entities/player.rb
codebreaker_rg_game-1.1 lib/codebreaker/entities/player.rb
codebreaker_rg_game-1.0 lib/codebreaker/entities/player.rb