Class: SportSearch::EventSearch
- Defined in:
- lib/sportdb/search/sport.rb
Overview
todo/check - change to EventInfoSearch - why? why not?
Instance Attribute Summary
Attributes inherited from Search
Instance Method Summary collapse
- #find_by(league:, season:) ⇒ Object
-
#seasons(league) ⇒ Object
core required delegates - use delegate generator - why? why not?.
Methods inherited from Search
Constructor Details
This class inherits a constructor from SportSearch::Search
Instance Method Details
#find_by(league:, season:) ⇒ Object
247 248 249 250 |
# File 'lib/sportdb/search/sport.rb', line 247 def find_by( league:, season: ) @service.find_by( league: league, season: season ) end |
#seasons(league) ⇒ Object
core required delegates - use delegate generator - why? why not?
244 245 246 |
# File 'lib/sportdb/search/sport.rb', line 244 def seasons( league ) @service.seasons( league ) end |