securitytrails 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/securitytrails/response.rb +2 -0
- data/lib/securitytrails/version.rb +1 -1
- 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: 5483c4d6c38eab1e5221427e34e881e56ee96a598803428b6b1eb3e434b0d451
|
4
|
+
data.tar.gz: 8105cc7a9dac696435ecdde62239c4e3c1abf67ff193f7953545d2629ef96e1e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c20d328670f8c6c76c3f57bca2933e58ca8360dc7bceed3b3faff1efbf2f6badb19be1b444dbccc3c46fff1dede6f3adae5d3e04cdffcaef7b32b59e9528adb8
|
7
|
+
data.tar.gz: '09efa1c991dca18805fdaba19fc21625ebf776aae32d144364ce0d5b6807fddde6dbb3eaeaa40418ae68904e4323c88d307ed39142ce8f2a0af51a71745ebff6'
|
@@ -5,6 +5,8 @@ require "ostruct"
|
|
5
5
|
module SecurityTrails
|
6
6
|
class Response < OpenStruct
|
7
7
|
def openstruct_to_hash(object, hash = {})
|
8
|
+
return object unless object.respond_to?(:each_pair)
|
9
|
+
|
8
10
|
object.each_pair do |key, value|
|
9
11
|
hash[key] = case value
|
10
12
|
when OpenStruct then openstruct_to_hash(value)
|