Class: Sunspot::Padrino::StubSessionProxy::Search

Inherits:
Object
  • Object
show all
Defined in:
lib/sunspot/padrino/stub_session_proxy.rb

Instance Method Summary collapse

Instance Method Details

#buildObject



76
77
78
# File 'lib/sunspot/padrino/stub_session_proxy.rb', line 76

def build
  self
end

#dynamic_facet(name) ⇒ Object



101
102
103
# File 'lib/sunspot/padrino/stub_session_proxy.rb', line 101

def dynamic_facet(name)
  FacetStub.new
end

#executeObject



105
106
107
# File 'lib/sunspot/padrino/stub_session_proxy.rb', line 105

def execute
  self
end

#facet(name) ⇒ Object



97
98
99
# File 'lib/sunspot/padrino/stub_session_proxy.rb', line 97

def facet(name)
  FacetStub.new
end

#facetsObject



93
94
95
# File 'lib/sunspot/padrino/stub_session_proxy.rb', line 93

def facets
  []
end

#hits(options = {}) ⇒ Object Also known as: raw_results



84
85
86
# File 'lib/sunspot/padrino/stub_session_proxy.rb', line 84

def hits(options = {})
  PaginatedCollection.new
end

#resultsObject



80
81
82
# File 'lib/sunspot/padrino/stub_session_proxy.rb', line 80

def results
  PaginatedCollection.new
end

#totalObject



89
90
91
# File 'lib/sunspot/padrino/stub_session_proxy.rb', line 89

def total
  0
end