lib/sportradar/api/images/asset.rb in sportradar-api-0.10.27 vs lib/sportradar/api/images/asset.rb in sportradar-api-0.10.28
- old
+ new
@@ -1,9 +1,9 @@
module Sportradar
module Api
class Images::Asset < Data
- attr_accessor :response, :id, :player_id, :created, :updated, :title, :description, :copyright, :links, :tags
+ attr_accessor :response, :id, :player_id, :created, :updated, :title, :description, :copyright, :links, :tags, :refs
def initialize(data)
@response = data
@id = data["id"]
@player_id = data["player_id"]
@@ -12,9 +12,10 @@
@title = data["title"]
@description = data["description"]
@copyright = data["copyright"]
@links = parse_into_array(selector: response["links"]["link"], klass: Sportradar::Api::Images::Link) if response["links"] && response["links"]["link"]
@tags = parse_into_array(selector: response["tags"]["tag"], klass: Sportradar::Api::Images::Tag) if response["tags"] && response["tags"]["tag"]
+ @refs = parse_into_array(selector: response["refs"]["ref"], klass: Sportradar::Api::Images::Ref) if response["refs"] && response["refs"]["ref"]
end
end
end
end