scryfall 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/scryfall.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: 884254b7f4df26635bb8098700b93eedfcf4a6ed69dad3f314cf7855790b6f15
|
4
|
+
data.tar.gz: 5e06821cc4cf777d05736387b43300b1d5b2132ee82fea63ac8195107c6e96c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a5648630434e26a56a12e67b4f251e2b60cbbfbb5c899177454587ad8e097927e7a2cdbd609737a9a02286737fe9f32764ce9842eecb8471bf94cb9461940066
|
7
|
+
data.tar.gz: fdf054939ce728736ea22c942fa8a281261f92a31e4a0b8e07fdde0802cd78ccca8d8c0cc093f0bac74d3d4ad4fb3c61d31b33245212111ec3aa7106a39b0a18
|
data/README.md
CHANGED
@@ -50,4 +50,4 @@ Scryfall::get_cards_search "f:standard t:creature", page: 2
|
|
50
50
|
|
51
51
|
# Response
|
52
52
|
|
53
|
-
The default response for all calls are JSON. If a `
|
53
|
+
The default response for all calls are JSON. If a `to_struct: true` is passed as argument, the return will be a `OpenStruct` Hash object.
|
data/lib/scryfall.rb
CHANGED
@@ -12,7 +12,7 @@ class Scryfall
|
|
12
12
|
def self.get(path, params = {}, **args)
|
13
13
|
res = HTTP.get(mount_uri(path), params: params)
|
14
14
|
|
15
|
-
if args.has_key?(:
|
15
|
+
if args.has_key?(:to_struct) && args[:to_struct] === true
|
16
16
|
JSON.parse res, object_class: OpenStruct
|
17
17
|
else
|
18
18
|
JSON.parse res
|