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