Class: Football::Butler::ApiFootball::Statistics

Inherits:
BaseApiFootball show all
Defined in:
lib/football/butler/api_football/statistics.rb

Constant Summary collapse

PATH =
'fixtures/statistics'

Constants inherited from Base

Base::MSG_INVALID_CONFIG

Class Method Summary collapse

Methods inherited from Base

api_class, api_switch, api_switch_method, api_switch_result, error_message, invalid_config_result, not_found_result, reached_limit?, this_class, unsupported_api_call, unsupported_api_endpoint

Class Method Details

.by_match(id:, result:) ⇒ Object

STATISTICS

fixtures/statistics&fixture=id



14
15
16
17
# File 'lib/football/butler/api_football/statistics.rb', line 14

def by_match(id:, result:)
  filters = { fixture: id }
  Api.get(path: PATH, filters: filters, result: result)
end