Class: Sunspot::Rails::StubSessionProxy
- Inherits:
-
Object
- Object
- Sunspot::Rails::StubSessionProxy
- Defined in:
- lib/sunspot/rails/stub_session_proxy.rb
Defined Under Namespace
Classes: Search
Instance Attribute Summary collapse
-
#original_session ⇒ Object
readonly
Returns the value of attribute original_session.
Instance Method Summary collapse
- #commit ⇒ Object
- #commit_if_delete_dirty ⇒ Object
- #commit_if_dirty ⇒ Object
- #delete_dirty? ⇒ Boolean
- #dirty? ⇒ Boolean
- #index(*objects) ⇒ Object
- #index!(*objects) ⇒ Object
-
#initialize(original_session) ⇒ StubSessionProxy
constructor
A new instance of StubSessionProxy.
- #new_search(*types) ⇒ Object
- #remove(*objects) ⇒ Object
- #remove!(*objects) ⇒ Object
- #remove_all(clazz = nil) ⇒ Object
- #remove_all!(clazz = nil) ⇒ Object
- #remove_by_id(clazz, id) ⇒ Object
- #remove_by_id!(clazz, id) ⇒ Object
- #search(*types) ⇒ Object
Constructor Details
#initialize(original_session) ⇒ StubSessionProxy
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 (readonly)
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
#commit ⇒ Object
48 49 |
# File 'lib/sunspot/rails/stub_session_proxy.rb', line 48 def commit end |
#commit_if_delete_dirty ⇒ Object
45 46 |
# File 'lib/sunspot/rails/stub_session_proxy.rb', line 45 def commit_if_delete_dirty end |
#commit_if_dirty ⇒ Object
42 43 |
# File 'lib/sunspot/rails/stub_session_proxy.rb', line 42 def commit_if_dirty end |
#delete_dirty? ⇒ Boolean
38 39 40 |
# File 'lib/sunspot/rails/stub_session_proxy.rb', line 38 def delete_dirty? false end |
#dirty? ⇒ Boolean
34 35 36 |
# File 'lib/sunspot/rails/stub_session_proxy.rb', line 34 def dirty? false end |
#index(*objects) ⇒ Object
10 11 |
# File 'lib/sunspot/rails/stub_session_proxy.rb', line 10 def index(*objects) end |
#index!(*objects) ⇒ Object
13 14 |
# File 'lib/sunspot/rails/stub_session_proxy.rb', line 13 def index!(*objects) end |
#new_search(*types) ⇒ Object
55 56 57 |
# File 'lib/sunspot/rails/stub_session_proxy.rb', line 55 def new_search(*types) Search.new end |
#remove(*objects) ⇒ Object
16 17 |
# File 'lib/sunspot/rails/stub_session_proxy.rb', line 16 def remove(*objects) end |
#remove!(*objects) ⇒ Object
19 20 |
# File 'lib/sunspot/rails/stub_session_proxy.rb', line 19 def remove!(*objects) end |
#remove_all(clazz = nil) ⇒ Object
28 29 |
# File 'lib/sunspot/rails/stub_session_proxy.rb', line 28 def remove_all(clazz = nil) end |
#remove_all!(clazz = nil) ⇒ Object
31 32 |
# File 'lib/sunspot/rails/stub_session_proxy.rb', line 31 def remove_all!(clazz = nil) end |
#remove_by_id(clazz, id) ⇒ Object
22 23 |
# File 'lib/sunspot/rails/stub_session_proxy.rb', line 22 def remove_by_id(clazz, id) end |
#remove_by_id!(clazz, id) ⇒ Object
25 26 |
# File 'lib/sunspot/rails/stub_session_proxy.rb', line 25 def remove_by_id!(clazz, id) end |