scryfall 0.0.7 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/scryfall.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cf32af09b3026944696a91897c7653f7f1bb74c7d2bfa7463f72aceb0797fc08
4
- data.tar.gz: 671b861417f508c6ce0d71acc45118c58d28c8e70705bde612705806adedd4d8
3
+ metadata.gz: 884254b7f4df26635bb8098700b93eedfcf4a6ed69dad3f314cf7855790b6f15
4
+ data.tar.gz: 5e06821cc4cf777d05736387b43300b1d5b2132ee82fea63ac8195107c6e96c6
5
5
  SHA512:
6
- metadata.gz: f23d7118d4cc14573b3a9ca5fdbb43f26de2968744f7379155ba4792b607a6c00ebe0fe407b54ff29b67614b130b10c6d042f18e024886b6f3faee369ffa5d08
7
- data.tar.gz: 9519a9e4b18ecb194031e325203d43a551affd3aabfcd55843dde379f5d0d807c666808a4fbd9ab8777a7f75bf6a10438e33bf024839105e831f518c8ba0f350
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 `is_struct: true` is passed as argument, the return will be a `OpenStruct` Hash object.
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?(:is_struct) && args.is_struct?
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scryfall
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - João Lucas