pokemon_tcg_sdk 4.4.0 → 4.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4045cfb16dc32873cac32c81fa1d5ee10be5d53a7fbe71a186861c6a7a583d68
4
- data.tar.gz: 63868f383de5dd6cb501bcd18d894b444145679177753ab2954d40e2ef78b44f
3
+ metadata.gz: 7c61f1b5ef5d8083b7915ca9d64e14e754fef3598bd1d58e3d5f4a4727f352b1
4
+ data.tar.gz: fdcb08c10a6c550ed4cc616871e2d9ab6b0122cbd5e8c301aa5c99eee2ce1685
5
5
  SHA512:
6
- metadata.gz: 3c0f85a3102d88cc649562e3c0469a696f98fc94241a1d09a8af6ad89bc7af678eb1b6a2b69c11c9de07d8c53bd2889434f2f4f08bb233095ba8c5b3c3056b7b
7
- data.tar.gz: 0fc2c81f7310c8093ee3d38c211cc22549b63cae492484928d3f1e6ae5f3729dfb842ab7dbf8d120142dfbe5be118fd9155a869bedd643ca900385b7c0733f98
6
+ metadata.gz: 10315159ee4ff57a3f967732f35d6f0ed86e02cd4ef5c87fdd76b3523b6bac6095d8d6cdb1b6662072621187cb79476e7a337b895a9e097ef646f85e74777316
7
+ data.tar.gz: 90335d1a500062cb5961cdfa0758ded340909648de8e3ff2c2c88331ca0d32c1b8aba2a18213db02bd53aea1a7f8980f0a56a210eb722cbf0237c89beaccd274
data/Rakefile CHANGED
@@ -16,6 +16,6 @@ Pokemon.configure do |config|
16
16
  end
17
17
 
18
18
  task :card do
19
- card = Pokemon::Card.find('xy1-1')
20
- puts card.tcgplayer.updated_at
19
+ card = Pokemon::Card.find('base2-17')
20
+ puts card.tcgplayer.prices.first_edition.market
21
21
  end
@@ -13,7 +13,7 @@ module Pokemon
13
13
  end
14
14
 
15
15
  class TcgPlayerPrices
16
- attr_accessor :normal, :holofoil, :reverse_holofoil, :first_edition_holofoil, :first_edition_normal
16
+ attr_accessor :normal, :holofoil, :reverse_holofoil, :first_edition_holofoil, :first_edition_normal, :first_edition, :unlimited
17
17
 
18
18
  def self.from_json(json)
19
19
  price = TcgPlayerPrices.new
@@ -22,6 +22,8 @@ module Pokemon
22
22
  price.reverse_holofoil = TcgPlayerPriceValues.from_json(json['reverseHolofoil']) if !json['reverseHolofoil'].nil?
23
23
  price.first_edition_holofoil = TcgPlayerPriceValues.from_json(json['1stEditionHolofoil']) if !json['1stEditionHolofoil'].nil?
24
24
  price.first_edition_normal = TcgPlayerPriceValues.from_json(json['1stEditionNormal']) if !json['1stEditionNormal'].nil?
25
+ price.first_edition = TcgPlayerPriceValues.from_json(json['1stEdition']) if !json['1stEdition'].nil?
26
+ price.unlimited = TcgPlayerPriceValues.from_json(json['unlimited']) if !json['unlimited'].nil?
25
27
 
26
28
  price
27
29
  end
@@ -1,3 +1,3 @@
1
1
  module Pokemon
2
- VERSION = "4.4.0"
2
+ VERSION = "4.5.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pokemon_tcg_sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.4.0
4
+ version: 4.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Backes
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-12-16 00:00:00.000000000 Z
11
+ date: 2022-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler