Class: LetsShard::Shard
- Inherits:
-
Object
- Object
- LetsShard::Shard
- Defined in:
- lib/lets_shard/shard.rb
Instance Attribute Summary collapse
-
#end_slot ⇒ Object
readonly
Returns the value of attribute end_slot.
-
#object ⇒ Object
readonly
Returns the value of attribute object.
-
#start_slot ⇒ Object
readonly
Returns the value of attribute start_slot.
Instance Method Summary collapse
-
#initialize(object, start_slot, end_slot) ⇒ Shard
constructor
A new instance of Shard.
Constructor Details
#initialize(object, start_slot, end_slot) ⇒ Shard
Returns a new instance of Shard.
5 6 7 8 9 |
# File 'lib/lets_shard/shard.rb', line 5 def initialize(object, start_slot, end_slot) @object = object @start_slot = start_slot @end_slot = end_slot end |
Instance Attribute Details
#end_slot ⇒ Object (readonly)
Returns the value of attribute end_slot.
3 4 5 |
# File 'lib/lets_shard/shard.rb', line 3 def end_slot @end_slot end |
#object ⇒ Object (readonly)
Returns the value of attribute object.
3 4 5 |
# File 'lib/lets_shard/shard.rb', line 3 def object @object end |
#start_slot ⇒ Object (readonly)
Returns the value of attribute start_slot.
3 4 5 |
# File 'lib/lets_shard/shard.rb', line 3 def start_slot @start_slot end |