Class: Solargraph::Pin::Search

Inherits:
Object
  • Object
show all
Defined in:
lib/solargraph/pin/search.rb

Defined Under Namespace

Classes: Result

Instance Method Summary collapse

Constructor Details

#initialize(pins, query) ⇒ Search

Returns a new instance of Search.

Parameters:



23
24
25
26
# File 'lib/solargraph/pin/search.rb', line 23

def initialize pins, query
  @pins = pins
  @query = query
end

Instance Method Details

#resultsArray<Pin::Base>

Returns:



29
30
31
# File 'lib/solargraph/pin/search.rb', line 29

def results
  @results ||= do_query
end