Class: Sports::League

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

Class Method Summary collapse

Class Method Details

._searchObject

use service/api or such - why? why not?



19
20
21
# File 'lib/sportdb/search/structs.rb', line 19

def self._search #### use service/api or such - why? why not?
    SportDb::Import.catalog.leagues
end

.find(q) ⇒ Object



32
# File 'lib/sportdb/search/structs.rb', line 32

def self.find( q )  _search_find( q ); end

.find!(q) ⇒ Object



31
# File 'lib/sportdb/search/structs.rb', line 31

def self.find!( q ) _search.find!( q ); end

.match(q, country: nil) ⇒ Object



27
28
29
# File 'lib/sportdb/search/structs.rb', line 27

def self.match( q, country: nil )
    _search.match( q, country: country )
end

.match_by(name: nil, code: nil, country: nil) ⇒ Object



22
23
24
25
26
# File 'lib/sportdb/search/structs.rb', line 22

def self.match_by( name: nil, code: nil,
                    country: nil )
   _search.match_by( name: name, code: code,
                     country: country )
end