Sha256: 940e0c648bee41669820899c7b0cfc24d82750c2f6a400d5614752731e02ac8a

Contents?: true

Size: 681 Bytes

Versions: 2

Compression:

Stored size: 681 Bytes

Contents

module GemCodebreakerAmidasd
class User
  attr_accessor :name,
                :difficulty,
                :total_count_attempt,
                :count_attempt,
                :total_count_hints,
                :count_hint

  def initialize(name:)
    @name = name
  end

  def set_params(difficulty:, total_count_attempt:, count_attempt:, total_count_hints:,count_hint:)
    @difficulty = difficulty
    @total_count_attempt = total_count_attempt
    @count_attempt = count_attempt
    @total_count_hints = total_count_hints
    @count_hint = count_hint
  end

  def self.validtion_name(name)
    name.is_a?(String) && !name.empty? && name.length.between?(3, 20)
  end

end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gem_codebreaker_amidasd-0.1.4 lib/gem_codebreaker_amidasd/user.rb
gem_codebreaker_amidasd-0.1.3 lib/gem_codebreaker_amidasd/user.rb