Class: ActiveShard::Scope::Memento
- Inherits:
-
Object
- Object
- ActiveShard::Scope::Memento
- Defined in:
- lib/active_shard/scope.rb
Instance Attribute Summary collapse
-
#current_shards ⇒ Object
readonly
Returns the value of attribute current_shards.
-
#scope_crumbs ⇒ Object
readonly
Returns the value of attribute scope_crumbs.
Instance Method Summary collapse
-
#initialize(scope_crumbs, current_shards) ⇒ Memento
constructor
A new instance of Memento.
Constructor Details
#initialize(scope_crumbs, current_shards) ⇒ Memento
Returns a new instance of Memento.
135 136 137 138 |
# File 'lib/active_shard/scope.rb', line 135 def initialize( scope_crumbs, current_shards ) @scope_crumbs = scope_crumbs.dup @current_shards = current_shards.dup end |
Instance Attribute Details
#current_shards ⇒ Object (readonly)
Returns the value of attribute current_shards.
133 134 135 |
# File 'lib/active_shard/scope.rb', line 133 def current_shards @current_shards end |
#scope_crumbs ⇒ Object (readonly)
Returns the value of attribute scope_crumbs.
133 134 135 |
# File 'lib/active_shard/scope.rb', line 133 def scope_crumbs @scope_crumbs end |