Class: Infostrada::MatchEventList
- Inherits:
-
BaseRequest
- Object
- BaseRequest
- Infostrada::MatchEventList
- Defined in:
- lib/infostrada/match_event_list.rb
Constant Summary collapse
- URL =
'/GetMatchActionList_All'
Constants inherited from BaseRequest
Instance Attribute Summary collapse
-
#events ⇒ Object
Returns the value of attribute events.
Class Method Summary collapse
Methods inherited from BaseRequest
Instance Attribute Details
#events ⇒ Object
Returns the value of attribute events.
7 8 9 |
# File 'lib/infostrada/match_event_list.rb', line 7 def events @events end |
Class Method Details
.where(options = {}) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/infostrada/match_event_list.rb', line 9 def self.where( = {}) match_id = .delete(:match_id) list = get!(URL, query: { matchid: match_id.to_i }) events = [] list.each do |event_hash| events << MatchEvent.new(match_id.to_i, event_hash) end events end |