Class: Pokeedex::Pokemon::Searcher::Base

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/pokeedex/pokemon/searcher/base.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(query) ⇒ Base

Returns a new instance of Base.



21
22
23
24
# File 'lib/pokeedex/pokemon/searcher/base.rb', line 21

def initialize(query)
  @query = query
  @records = collection
end

Instance Attribute Details

#queryObject (readonly)

The query to search the Pokemon data



15
16
17
# File 'lib/pokeedex/pokemon/searcher/base.rb', line 15

def query
  @query
end

#recordsObject (readonly)

The records found from the search



19
20
21
# File 'lib/pokeedex/pokemon/searcher/base.rb', line 19

def records
  @records
end