codebreaker_karolina 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/codebreaker_karolina/version.rb +1 -1
- data/lib/modules/user.rb +4 -6
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1276ade3c40cf26100044dfbf9666471ea8572c0392bd77876c1d0c05f495097
|
4
|
+
data.tar.gz: 4d5962dc8c4751e4d09998f06cb2ea6fbbeef06273c7941d065b37820d4c83b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2863324da0f6b4603426e8070b7aaeb0b842a642285e206928ef6f3f4677c6d6a1fa484eadc6b34c97a275abe301bd062d5b57c66e77c7de6058506a1656174d
|
7
|
+
data.tar.gz: 9d15b36e87d3f36f27965a6b81b3c821b41f75f373b2815cd9c2d5d4e82edc9d8930420128cbca4d984b5e9abaac4172d994bd5e9d6bb9865ee8b4b6fe6fa0fe
|
data/Gemfile.lock
CHANGED
data/lib/modules/user.rb
CHANGED
@@ -1,15 +1,13 @@
|
|
1
1
|
class User
|
2
2
|
attr_accessor :used_attempts, :used_hints
|
3
|
+
attr_reader :name
|
3
4
|
|
4
|
-
def initialize
|
5
|
-
@used_attempts = 0
|
6
|
-
@used_hints = 0
|
7
|
-
end
|
8
|
-
|
9
|
-
def name(name)
|
5
|
+
def initialize(name)
|
10
6
|
return unless valid?(name)
|
11
7
|
|
12
8
|
@name = name
|
9
|
+
@used_attempts = 0
|
10
|
+
@used_hints = 0
|
13
11
|
end
|
14
12
|
|
15
13
|
private
|