lib/sportradar/api/content/article.rb in sportradar-api-0.1.37 vs lib/sportradar/api/content/article.rb in sportradar-api-0.1.38
- old
+ new
@@ -18,15 +18,16 @@
@provider = OpenStruct.new(data["provider"]) if data["provider"]
set_references
end
def transaction?
- !!transaction
+ transaction == 'true'
end
def injury?
- !!injury
+ injury == 'true'
end
+
private
def set_references
if response["refs"] && response["refs"]["ref"]
if response["refs"]["ref"].is_a?(Array)
@references = response["refs"]["ref"].map {|x| Sportradar::Api::Content::Reference.new x }