Class: Solargraph::Pin::Search
- Inherits:
-
Object
- Object
- Solargraph::Pin::Search
- Defined in:
- lib/solargraph/pin/search.rb
Defined Under Namespace
Classes: Result
Instance Method Summary collapse
-
#initialize(pins, query) ⇒ Search
constructor
A new instance of Search.
- #results ⇒ Array<Pin::Base>
Constructor Details
#initialize(pins, query) ⇒ Search
Returns a new instance of Search.
23 24 25 26 |
# File 'lib/solargraph/pin/search.rb', line 23 def initialize pins, query @pins = pins @query = query end |
Instance Method Details
#results ⇒ Array<Pin::Base>
29 30 31 |
# File 'lib/solargraph/pin/search.rb', line 29 def results @results ||= do_query end |