Class: OptaSD::Soccer::Match
- Inherits:
-
SoccerCore
- Object
- Core
- SoccerCore
- OptaSD::Soccer::Match
- Defined in:
- lib/opta_sd/soccer/match.rb
Constant Summary
Constants inherited from Core
Instance Attribute Summary
Attributes inherited from SoccerCore
Attributes inherited from Core
Instance Method Summary collapse
-
#initialize ⇒ Match
constructor
A new instance of Match.
- #time_range(from, to) ⇒ Object
Methods inherited from SoccerCore
Methods inherited from Core
#get, #parse_data, #parse_json, #parse_xml
Constructor Details
#initialize ⇒ Match
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 |