Class: SportsApi::Football::OddsMappingResource

Inherits:
Resource
  • Object
show all
Defined in:
lib/sports_api/football/resources/odds_pre_match/odds_mapping.rb

Instance Attribute Summary

Attributes inherited from Resource

#client

Instance Method Summary collapse

Methods inherited from Resource

#get_request, #initialize

Constructor Details

This class inherits a constructor from SportsApi::Resource

Instance Method Details

#list(**params) ⇒ Object

Arguments: page: [Integer](optional) - Use for the pagination (default 1).



8
9
10
11
# File 'lib/sports_api/football/resources/odds_pre_match/odds_mapping.rb', line 8

def list(**params)
  response = get_request('odds/mapping', params:)
  Collection.from_response(response, type: SportsApi::Football::OddsMapping)
end