Class: SportsApi::Football::PredictionResource
- Defined in:
- lib/sports_api/football/resources/prediction.rb
Instance Attribute Summary
Attributes inherited from Resource
Instance Method Summary collapse
-
#list(fixture:) ⇒ Object
Arguments: fixture: [Integer](required) - The fixture ID.
Methods inherited from Resource
Constructor Details
This class inherits a constructor from SportsApi::Resource
Instance Method Details
#list(fixture:) ⇒ Object
Arguments: fixture: [Integer](required) - The fixture ID.
8 9 10 11 |
# File 'lib/sports_api/football/resources/prediction.rb', line 8 def list(fixture:) response = get_request('predictions', params: { fixture: fixture.to_s }) Collection.from_response(response, type: SportsApi::Football::Prediction) end |