Class: OptaSD::Soccer::SoccerCore
- Defined in:
- lib/opta_sd/soccer/soccer.rb
Direct Known Subclasses
Commentary, Match, MatchEvent, MatchFacts, MatchPreview, MatchStatistics, PassMatrix, PlayerCareer, Possession, Rankings, SeasonalStats, Squads, TeamStandings, TournamentCalendar, TournamentSchedule, Venues
Constant Summary
Constants inherited from Core
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#params ⇒ Object
Returns the value of attribute params.
Instance Method Summary collapse
-
#initialize ⇒ SoccerCore
constructor
A new instance of SoccerCore.
- #resource(resource_id) ⇒ Object
Methods inherited from Core
#get, #parse_data, #parse_json, #parse_xml
Constructor Details
#initialize ⇒ SoccerCore
Returns a new instance of SoccerCore.
7 8 9 10 |
# File 'lib/opta_sd/soccer/soccer.rb', line 7 def initialize super @sport = 'soccerdata' end |
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data.
5 6 7 |
# File 'lib/opta_sd/soccer/soccer.rb', line 5 def data @data end |
#params ⇒ Object
Returns the value of attribute params.
5 6 7 |
# File 'lib/opta_sd/soccer/soccer.rb', line 5 def params @params end |
Instance Method Details
#resource(resource_id) ⇒ Object
12 13 14 15 |
# File 'lib/opta_sd/soccer/soccer.rb', line 12 def resource(resource_id) @resource = resource_id self end |