Class: Pokeedex::Pokemon::Searcher::Base
- Inherits:
-
Object
- Object
- Pokeedex::Pokemon::Searcher::Base
- Extended by:
- Forwardable
- Defined in:
- lib/pokeedex/pokemon/searcher/base.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#query ⇒ Object
readonly
The query to search the Pokemon data.
-
#records ⇒ Object
readonly
The records found from the search.
Instance Method Summary collapse
-
#initialize(query) ⇒ Base
constructor
A new instance of Base.
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
#query ⇒ Object (readonly)
The query to search the Pokemon data
15 16 17 |
# File 'lib/pokeedex/pokemon/searcher/base.rb', line 15 def query @query end |
#records ⇒ Object (readonly)
The records found from the search
19 20 21 |
# File 'lib/pokeedex/pokemon/searcher/base.rb', line 19 def records @records end |