Sha256: 228c4d8a6197b20694ede0c397d34fdedf93dde148dc065a8599d0987575296b

Contents?: true

Size: 280 Bytes

Versions: 2

Compression:

Stored size: 280 Bytes

Contents

module GemCodebreakerAmidasd
  class User
    MIN_LENGTH_NAME = 3
    MAX_LENGTH_NAME = 20

    attr_reader :name

    def initialize(name:)
      @name = name
    end

    def self.valid_name?(name:)
      name.length.between?(MIN_LENGTH_NAME, MAX_LENGTH_NAME)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gem_codebreaker_amidasd-0.2.0 lib/gem_codebreaker_amidasd/user.rb
gem_codebreaker_amidasd-0.1.9 lib/gem_codebreaker_amidasd/user.rb