Class: SportSearch::EventSearch

Inherits:
Search
  • Object
show all
Defined in:
lib/sportdb/search/sport.rb

Overview

todo/check - change to EventInfoSearch - why? why not?

Instance Attribute Summary

Attributes inherited from Search

#service

Instance Method Summary collapse

Methods inherited from Search

#initialize

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