Sha256: 6aab3d43e50fa8a48cd073679bbd167dff7dc5fb7b2ab9180d5750a8f94f4379
Contents?: true
Size: 888 Bytes
Versions: 1
Compression:
Stored size: 888 Bytes
Contents
module Sportradar module Api module Football class Event < Data attr_accessor :response, :id, :sequence, :reference, :clock, :type, :event_type, :description, :alt_description def initialize(data, **opts) @response = data @id = data["id"] update(data, **opts) end def update(data, **opts) @sequence = data["sequence"] @reference = data["reference"] @clock = data["clock"] @type = data["type"] @event_type = data["event_type"] @description = data["description"] || data["summary"] @alt_description = data["alt_description"] self end def plays [] end def events [self] end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sportradar-api-0.11.0 | lib/sportradar/api/football/event.rb |