rubyhexagon 1.6.2 → 1.6.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rubyhexagon.rb +1 -1
- data/lib/rubyhexagon/user.rb +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5fd5fb58b75d8d6efb6bed84b2f2392c690290653f12ace6b2e705338759b50a
|
4
|
+
data.tar.gz: aa5c46fb02c632101624b5f96237b1cb28ce3d56c4810f801bb33aeebf4641f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a3f900193d3d7311a7fb47273db5ac527d02b0d8750c4d2d0969921d6718db4f03d20580427a2b7f9b68c391ff6d60c774616c627fe7718af77485aec897285
|
7
|
+
data.tar.gz: 5c16e10e06ba7ff0810f91e77b35dee2ac3f58f0e625fe38e7f0aae24cd1e157f29e02cccfa7ab9d11d81f7add45b6c2e47753168a4784a1278bade0699f36d3
|
data/lib/rubyhexagon.rb
CHANGED
data/lib/rubyhexagon/user.rb
CHANGED
@@ -53,6 +53,8 @@ module Rubyhexagon
|
|
53
53
|
# Fill this object with user data.
|
54
54
|
def show!
|
55
55
|
user = API.new.fetch('user', 'show', id: @id)
|
56
|
+
@id = user[:id].to_i
|
57
|
+
@name = user[:name]
|
56
58
|
@level = Level.new(user[:level].to_i)
|
57
59
|
@created_at = Time.parse(user[:created_at])
|
58
60
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubyhexagon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Maxine Michalski
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-07-
|
11
|
+
date: 2018-07-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|