atrium-ruby 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/atrium/challenge.rb +1 -3
- data/lib/atrium/member.rb +6 -5
- data/lib/atrium/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 45306e8a45e180bc2337f97043c8dbec94f147a1
|
4
|
+
data.tar.gz: 432664c114ffec49beadacdf3bd46be8c204161a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 01e66665badb1c893bf91d565961924405c4cddc8334d9bd93dfc4b2139f268e03e737b2e512aac82dcc9395197447df4346c7eb3c41debf849fe92aa102bffb
|
7
|
+
data.tar.gz: 52e54d9e538e036f511a166ca0603ffad044ec5a47fc1db57ff8248ccb48c848b7752abcfe1196840f7ef0972697e867f2899690f043e7ba92a93a820cea92e6
|
data/lib/atrium/challenge.rb
CHANGED
data/lib/atrium/member.rb
CHANGED
@@ -75,14 +75,15 @@ module Atrium
|
|
75
75
|
|
76
76
|
def challenges
|
77
77
|
endpoint = "/users/#{self.user_guid}/members/#{self.guid}/challenges"
|
78
|
-
|
78
|
+
challenge_response = ::Atrium.client.make_request(:get, endpoint)
|
79
|
+
|
80
|
+
return nil if challenge_response.nil?
|
81
|
+
|
82
|
+
challenge_params = challenge_response["challenges"]
|
79
83
|
|
80
|
-
|
81
|
-
challenges = member_params.map do |challenge|
|
82
|
-
challenge[:member_guid] = self.guid
|
84
|
+
challenge_params.map do |challenge|
|
83
85
|
::Atrium::Challenge.new(challenge)
|
84
86
|
end
|
85
|
-
challenges
|
86
87
|
end
|
87
88
|
|
88
89
|
def delete
|
data/lib/atrium/version.rb
CHANGED