Class: SportsApi::Football::OddsLiveResource

Inherits:
Resource
  • Object
show all
Defined in:
lib/sports_api/football/resources/odds_in_play/odds_live.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: fixture: [Integer](optional) - The fixture ID. league: [Integer](optional) - The league ID. bet: [Integer](optional) - The bet ID.



10
11
12
13
# File 'lib/sports_api/football/resources/odds_in_play/odds_live.rb', line 10

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