Sha256: 9a2abf91c277b00bab80fbca3c00dda087fc1e561c02f7e977f554180e42c092

Contents?: true

Size: 250 Bytes

Versions: 1

Compression:

Stored size: 250 Bytes

Contents

module Aggro
  # Public: Reference to an Aggregate which may be local or remote.
  class AggregateRef
    attr_reader :id

    def initialize(id)
      @id = id
    end

    def server
      @server ||= Aggro.hash_ring.node_for(id)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
aggro-0.0.1 lib/aggro/aggregate_ref.rb