sportradar-api 0.11.52 → 0.11.53

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2d31c4135ee2db46b37ce83db5fa8b5d33a7a843
4
- data.tar.gz: 23e446aac7c23fe903b2dbea57e67314e8e6e51a
3
+ metadata.gz: 235d4556e785edcab5e20a9e5c4dd2eaa159c79f
4
+ data.tar.gz: 3cf6588c4117e61544d4ed66ba4d89943193de0f
5
5
  SHA512:
6
- metadata.gz: c51c4033be17a625aef39ef49298a0957fcdfb906454079cfca27861a7e5628bd79e04ce9c538da991077cc28e10c8902be87af917d9dda290c64ada174abdb9
7
- data.tar.gz: efad97aaef58d2075e8deba0096593f667c4cc38b387e763c5d61a61fef21e8c006295bdc8833e494e41dcb92d63dda02c46439eb81a58dce6212bfe11a44aa0
6
+ metadata.gz: 04c5976dfc6069171a9a773b6aa6cb7fbb71745eb23a62acf04bf72b51569f5d046a99b9dea37f8f37890ba28d2dfd173c492a1a6c50f685e306691f84e6ec56
7
+ data.tar.gz: aab8195ca8a6e0f25e3729ec980247f0ab24be2df077c5c29932e2e0b736bfc6c25abd094e568585d888bc297c5db69a5c0653cd389f9e0889655d2e210afd80
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sportradar-api (0.11.52)
4
+ sportradar-api (0.11.53)
5
5
  activesupport
6
6
  httparty (>= 0.14.0)
7
7
 
@@ -63,17 +63,26 @@ module Sportradar
63
63
  end
64
64
 
65
65
  def queue_details
66
- if @details
66
+ if @details && !has_details?
67
67
  url, headers, options, timeout = @api.get_request_info(@details)
68
- {url: url, headers: headers, params: options, timeout: timeout, callback: method(:update)}
68
+ {url: url, headers: headers, params: options, timeout: timeout, callback: method(:update_details)}
69
69
  end
70
70
  end
71
71
 
72
+ def has_details?
73
+ !@detailed_data.nil?
74
+ end
75
+
76
+ def update_details(data)
77
+ @detailed_data = data
78
+ update(data)
79
+ end
80
+
72
81
  def get_details
73
- if @details
74
- @detailed_data = @api.get_data(@details).to_h
75
- update(@detailed_data)
76
- @detailed_data
82
+ if @details && !has_details?
83
+ data = @api.get_data(@details).to_h
84
+ update_details(data)
85
+ data
77
86
  end
78
87
  end
79
88
 
@@ -1,5 +1,5 @@
1
1
  module Sportradar
2
2
  module Api
3
- VERSION = "0.11.52"
3
+ VERSION = "0.11.53"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sportradar-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.52
4
+ version: 0.11.53
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Eggett