Class: LetsShard::Shard

Inherits:
Object
  • Object
show all
Defined in:
lib/lets_shard/shard.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_slotObject (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

#objectObject (readonly)

Returns the value of attribute object.



3
4
5
# File 'lib/lets_shard/shard.rb', line 3

def object
  @object
end

#start_slotObject (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