Class: SportSearch::GroundSearch

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



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

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

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

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



84
85
86
87
88
# File 'lib/sportdb/search/sport.rb', line 84

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