Class: SportsApi::Football::OddsResource
- Defined in:
- lib/sports_api/football/resources/odds_pre_match/odds.rb
Instance Attribute Summary
Attributes inherited from Resource
Instance Method Summary collapse
-
#list(**params) ⇒ Object
Arguments: fixture: Integer - The fixture ID.
Methods inherited from Resource
Constructor Details
This class inherits a constructor from SportsApi::Resource
Instance Method Details
#list(**params) ⇒ Object
Arguments: fixture: Integer - The fixture ID. league: Integer - The league ID. bet: Integer - The bet ID. bookmaker: Integer - The bookmaker ID. season: Integer - The season of the league (= YYYY). date: String - A valid date (= YYYY-MM-DD). timezone: String - A valid timezone from the endpoint Timezone. page: Integer - Use for the pagination (default 1).
15 16 17 18 |
# File 'lib/sports_api/football/resources/odds_pre_match/odds.rb', line 15 def list(**params) response = get_request('odds', params:) Collection.from_response(response, type: SportsApi::Football::Odds) end |