Sha256: f82db113e1f19befd5fc4590e6d43ff9a3d0084edb23b79bd2911191304fc844

Contents?: true

Size: 387 Bytes

Versions: 240

Compression:

Stored size: 387 Bytes

Contents

module Sportradar
  module Api
    class Images::AssetList < Data
      attr_accessor :response, :type, :sport, :assets

      def initialize(data)
        @response = data
        @type = data["type"]
        @sport = data["sport"]
        @assets = parse_into_array(selector: response["asset"], klass: Sportradar::Api::Images::Asset)  if response["asset"]
      end

    end
  end
end

Version data entries

240 entries across 240 versions & 1 rubygems

Version Path
sportradar-api-0.20.2 lib/sportradar/api/images/asset_list.rb
sportradar-api-0.20.1 lib/sportradar/api/images/asset_list.rb
sportradar-api-0.20.0 lib/sportradar/api/images/asset_list.rb
sportradar-api-0.20.0.pre2 lib/sportradar/api/images/asset_list.rb
sportradar-api-0.20.0.pre lib/sportradar/api/images/asset_list.rb
sportradar-api-0.19.6 lib/sportradar/api/images/asset_list.rb
sportradar-api-0.19.5 lib/sportradar/api/images/asset_list.rb
sportradar-api-0.19.4 lib/sportradar/api/images/asset_list.rb
sportradar-api-0.19.3 lib/sportradar/api/images/asset_list.rb
sportradar-api-0.19.2 lib/sportradar/api/images/asset_list.rb
sportradar-api-0.19.1 lib/sportradar/api/images/asset_list.rb
sportradar-api-0.19.0 lib/sportradar/api/images/asset_list.rb
sportradar-api-0.18.1 lib/sportradar/api/images/asset_list.rb
sportradar-api-0.18.0 lib/sportradar/api/images/asset_list.rb
sportradar-api-0.17.6 lib/sportradar/api/images/asset_list.rb
sportradar-api-0.17.5 lib/sportradar/api/images/asset_list.rb
sportradar-api-0.17.5.pre lib/sportradar/api/images/asset_list.rb
sportradar-api-0.17.4 lib/sportradar/api/images/asset_list.rb
sportradar-api-0.17.3 lib/sportradar/api/images/asset_list.rb
sportradar-api-0.17.2 lib/sportradar/api/images/asset_list.rb