Class: Sunspot::Rails::StubSessionProxy
- Inherits:
-
Object
- Object
- Sunspot::Rails::StubSessionProxy
show all
- Defined in:
- lib/sunspot/rails/stub_session_proxy.rb
Defined Under Namespace
Classes: DataAccessorStub, FacetStub, PaginatedCollection, Search, StatsStub
Instance Attribute Summary collapse
Instance Method Summary
collapse
Constructor Details
Returns a new instance of StubSessionProxy.
6
7
8
|
# File 'lib/sunspot/rails/stub_session_proxy.rb', line 6
def initialize(original_session)
@original_session = original_session
end
|
Instance Attribute Details
#original_session ⇒ Object
Returns the value of attribute original_session.
4
5
6
|
# File 'lib/sunspot/rails/stub_session_proxy.rb', line 4
def original_session
@original_session
end
|
Instance Method Details
#atomic_update(clazz, updates = {}) ⇒ Object
20
21
|
# File 'lib/sunspot/rails/stub_session_proxy.rb', line 20
def atomic_update(clazz, updates = {})
end
|
#atomic_update!(clazz, updates = {}) ⇒ Object
23
24
|
# File 'lib/sunspot/rails/stub_session_proxy.rb', line 23
def atomic_update!(clazz, updates = {})
end
|
#batch ⇒ Object
10
11
12
|
# File 'lib/sunspot/rails/stub_session_proxy.rb', line 10
def batch
yield
end
|
#commit(soft_commit = false) ⇒ Object
65
66
|
# File 'lib/sunspot/rails/stub_session_proxy.rb', line 65
def commit(soft_commit = false)
end
|
#commit_if_delete_dirty(soft_commit = false) ⇒ Object
62
63
|
# File 'lib/sunspot/rails/stub_session_proxy.rb', line 62
def commit_if_delete_dirty(soft_commit = false)
end
|
#commit_if_dirty(soft_commit = false) ⇒ Object
59
60
|
# File 'lib/sunspot/rails/stub_session_proxy.rb', line 59
def commit_if_dirty(soft_commit = false)
end
|
#config ⇒ Object
47
48
49
|
# File 'lib/sunspot/rails/stub_session_proxy.rb', line 47
def config
Sunspot::Configuration.build
end
|
#delete_dirty? ⇒ Boolean
55
56
57
|
# File 'lib/sunspot/rails/stub_session_proxy.rb', line 55
def delete_dirty?
false
end
|
#dirty? ⇒ Boolean
51
52
53
|
# File 'lib/sunspot/rails/stub_session_proxy.rb', line 51
def dirty?
false
end
|
#index(*objects) ⇒ Object
14
15
|
# File 'lib/sunspot/rails/stub_session_proxy.rb', line 14
def index(*objects)
end
|
#index!(*objects) ⇒ Object
17
18
|
# File 'lib/sunspot/rails/stub_session_proxy.rb', line 17
def index!(*objects)
end
|
#more_like_this(*args) ⇒ Object
76
77
78
|
# File 'lib/sunspot/rails/stub_session_proxy.rb', line 76
def more_like_this(*args)
Search.new
end
|
#new_more_like_this(*args) ⇒ Object
80
81
82
|
# File 'lib/sunspot/rails/stub_session_proxy.rb', line 80
def new_more_like_this(*args)
Search.new
end
|
#new_search(*types) ⇒ Object
72
73
74
|
# File 'lib/sunspot/rails/stub_session_proxy.rb', line 72
def new_search(*types)
Search.new
end
|
#optimize ⇒ Object
44
45
|
# File 'lib/sunspot/rails/stub_session_proxy.rb', line 44
def optimize
end
|
#remove(*objects) ⇒ Object
26
27
|
# File 'lib/sunspot/rails/stub_session_proxy.rb', line 26
def remove(*objects)
end
|
#remove!(*objects) ⇒ Object
29
30
|
# File 'lib/sunspot/rails/stub_session_proxy.rb', line 29
def remove!(*objects)
end
|
#remove_all(clazz = nil) ⇒ Object
38
39
|
# File 'lib/sunspot/rails/stub_session_proxy.rb', line 38
def remove_all(clazz = nil)
end
|
#remove_all!(clazz = nil) ⇒ Object
41
42
|
# File 'lib/sunspot/rails/stub_session_proxy.rb', line 41
def remove_all!(clazz = nil)
end
|
#remove_by_id(clazz, id) ⇒ Object
32
33
|
# File 'lib/sunspot/rails/stub_session_proxy.rb', line 32
def remove_by_id(clazz, id)
end
|
#remove_by_id!(clazz, id) ⇒ Object
35
36
|
# File 'lib/sunspot/rails/stub_session_proxy.rb', line 35
def remove_by_id!(clazz, id)
end
|
#search(*types) ⇒ Object
68
69
70
|
# File 'lib/sunspot/rails/stub_session_proxy.rb', line 68
def search(*types)
Search.new
end
|