fortytwo 0.0.16 → 0.0.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fortytwo/responses/base.rb +2 -1
- data/lib/fortytwo/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: ea66e83dcd6402f67dd91c9a8c34bbd1cd87f689
|
4
|
+
data.tar.gz: 646bb4989b21d67f11124e85af06885bff07f432
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2aacba2ac1ce3a80eb51d9d9625053ef0781ec2459fa5c06f3f2f801994ed716013d07195955145956890a0c40007b6c05db3b9e3673e717ed27177cb4962974
|
7
|
+
data.tar.gz: 8efe61a35b9bcc4d3143e7cd5d427197b1adb4bfb9fbc31712ba659ec83b0e7ea611341af420125be746aff94f70a634d0a043f547ffb7ca81070ad7349b3ce2
|
@@ -3,9 +3,10 @@ module FortyTwo
|
|
3
3
|
class Base
|
4
4
|
def initialize(json)
|
5
5
|
return if json.nil?
|
6
|
+
return instance_variable_set("@user_sessions", json) if json.is_a?(Array)
|
6
7
|
|
7
8
|
json.each do |key, value|
|
8
|
-
key = key.chomp('?') if
|
9
|
+
key = key.chomp('?') if key.end_with?('?')
|
9
10
|
instance_variable_set("@#{key}", value)
|
10
11
|
end
|
11
12
|
end
|
data/lib/fortytwo/version.rb
CHANGED