Class: Football::Butler::Standings

Inherits:
Base
  • Object
show all
Defined in:
lib/football/butler/standings.rb

Constant Summary

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

.away_by_competition(id:, result: api_switch_result, filters: {}) ⇒ Object



19
20
21
# File 'lib/football/butler/standings.rb', line 19

def away_by_competition(id:, result: api_switch_result, filters: {})
  api_switch_method(__method__, { id: id, result: result, filters: filters })
end

.by_competition(id:, result: api_switch_result, filters: {}) ⇒ Object



11
12
13
# File 'lib/football/butler/standings.rb', line 11

def by_competition(id:, result: api_switch_result, filters: {})
  api_switch_method(__method__, { id: id, result: result, filters: filters })
end

.by_competition_and_year(id:, year:, result: api_switch_result, filters: {}) ⇒ Object



23
24
25
# File 'lib/football/butler/standings.rb', line 23

def by_competition_and_year(id:, year:, result: api_switch_result, filters: {})
  api_switch_method(__method__, { id: id, year: year, result: result, filters: filters })
end

.home_by_competition(id:, result: api_switch_result, filters: {}) ⇒ Object



15
16
17
# File 'lib/football/butler/standings.rb', line 15

def home_by_competition(id:, result: api_switch_result, filters: {})
  api_switch_method(__method__, { id: id, result: result, filters: filters })
end