Class: OptaSD::Soccer::Match

Inherits:
SoccerCore show all
Defined in:
lib/opta_sd/soccer/match.rb

Constant Summary

Constants inherited from Core

Core::PARAMETERS

Instance Attribute Summary

Attributes inherited from SoccerCore

#data, #params

Attributes inherited from Core

#data

Instance Method Summary collapse

Methods inherited from SoccerCore

#resource

Methods inherited from Core

#get, #parse_data, #parse_json, #parse_xml

Constructor Details

#initializeMatch

Returns a new instance of Match.



8
9
10
11
# File 'lib/opta_sd/soccer/match.rb', line 8

def initialize
  super
  @feed_name = 'match'
end

Instance Method Details

#time_range(from, to) ⇒ Object



13
14
15
16
# File 'lib/opta_sd/soccer/match.rb', line 13

def time_range(from, to)
  match_time("[#{from.utc.iso8601} TO #{to.utc.iso8601}]")
  return self
end