Class: SportSearch::PlayerSearch

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

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

#match(name) ⇒ Object

more deriv support functions / helpers



20
# File 'lib/sportdb/search/sport.rb', line 20

def match( name ) match_by( name: name ); end

#match_by(name:, country: nil, year: nil) ⇒ Object

core required delegates - use delegate generator - why? why not?



12
13
14
15
16
# File 'lib/sportdb/search/sport.rb', line 12

def match_by( name:, country: nil, year: nil )
  @service.match_by( name:    name,
                     country: country,
                     year:    year )
end