# frozen_string_literal: true module Codebreaker class User < BaseClass attr_reader :name def initialize(player_name) super() validation_name(player_name) @name = player_name if valid? end end end