Sha256: 306ef7052fc1b3db2b63ed0718355ab482943261bb53b0b281ccabb568580c77

Contents?: true

Size: 297 Bytes

Versions: 5

Compression:

Stored size: 297 Bytes

Contents

# frozen_string_literal: true

module AndriiCodebreaker
  class User
    include Constant

    attr_reader :name

    def initialize(name)
      @name = name
    end

    def self.validate_name(name)
      name if name.length >= NAME_MIN_LENGTH && name.length <= NAME_MAX_LENGTH
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
andrii_codebreaker-0.1.14 lib/andrii_codebreaker/user.rb
andrii_codebreaker-0.1.13 lib/andrii_codebreaker/user.rb
andrii_codebreaker-0.1.12 lib/andrii_codebreaker/user.rb
andrii_codebreaker-0.1.11 lib/andrii_codebreaker/user.rb
andrii_codebreaker-0.1.10 lib/andrii_codebreaker/user.rb