Sha256: 56f44f6cd32d880ceac61230350266bfaf717a90c7a397f2e60f64a411fa764a
Contents?: true
Size: 346 Bytes
Versions: 3
Compression:
Stored size: 346 Bytes
Contents
# frozen_string_literal: true module Codebreaker class User < ValidatableEntity attr_reader :name, :errors VALID_NAME_SIZE = (3..20).freeze def initialize(name) super() @name = name end def validate @errors << I18n.t('invalid.cover_error') unless check_cover?(@name, VALID_NAME_SIZE) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
codebreaker_Shkidchenko-1.3.0 | lib/app/entities/user.rb |
codebreaker_Shkidchenko-0.2.0 | lib/app/entities/user.rb |
codebreaker_Shkidchenko-0.1.0 | lib/app/entities/user.rb |