Class: Football::Butler::Venues

Inherits:
Base
  • Object
show all
Defined in:
lib/football/butler/venues.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

.by_city(city:, result: api_switch_result, filters: {}) ⇒ Object

VENUES



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

def by_city(city:, result: api_switch_result, filters: {})
  api_switch_method(__method__, { city: city, result: result, filters: filters })
end

.by_country(country:, result: api_switch_result, filters: {}) ⇒ Object



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

def by_country(country:, result: api_switch_result, filters: {})
  api_switch_method(__method__, { country: country, result: result, filters: filters })
end

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



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

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

.by_name(name:, result: api_switch_result, filters: {}) ⇒ Object



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

def by_name(name:, result: api_switch_result, filters: {})
  api_switch_method(__method__, { name: name, result: result, filters: filters })
end

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



27
28
29
# File 'lib/football/butler/venues.rb', line 27

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