Sha256: 063c37091eb97462a73adcae0455c01238893f22ea0236ba746d4e9c9bd5d7eb

Contents?: true

Size: 217 Bytes

Versions: 7

Compression:

Stored size: 217 Bytes

Contents

class FakeRingMetaData

  attr_accessor :ring_size
  attr_accessor :shards

  def initialize(ring_size)
    @ring_size = ring_size
    @shards = {}
  end

  def shard(shard_no)
    return @shards[shard_no]
  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
redis_ring_client-0.1.2 spec/fakes/fake_ring_meta_data.rb
redis_ring_client-0.1.1 spec/fakes/fake_ring_meta_data.rb
redis_ring_client-0.1.0 spec/fakes/fake_ring_meta_data.rb
redis_ring_client-0.0.4 spec/fakes/fake_ring_meta_data.rb
redis_ring_client-0.0.3 spec/fakes/fake_ring_meta_data.rb
redis_ring_client-0.0.2 spec/fakes/fake_ring_meta_data.rb
redis_ring_client-0.0.1 spec/fakes/fake_ring_meta_data.rb