Sha256: 5247f6978d419fcf7a0b6577e4cbedd920f0651c02a0f43fe1969a749b7545a2

Contents?: true

Size: 345 Bytes

Versions: 9

Compression:

Stored size: 345 Bytes

Contents

class Riak::Client::BeefcakeProtobuffsBackend
  class CrdtLoader
    class CounterLoader
      def self.for_value(resp)
        return nil unless resp.counter_value
        new resp.counter_value
      end

      def initialize(counter_value)
        @value = counter_value
      end

      def rubyfy
        @value
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
riak-client-2.6.0 lib/riak/client/beefcake/crdt/counter_loader.rb
riak-client-2.5.0 lib/riak/client/beefcake/crdt/counter_loader.rb
riak-client-2.3.0 lib/riak/client/beefcake/crdt/counter_loader.rb
riak-client-2.2.2 lib/riak/client/beefcake/crdt/counter_loader.rb
riak-client-2.2.1 lib/riak/client/beefcake/crdt/counter_loader.rb
riak-client-noenc-1.0.0 lib/riak/client/beefcake/crdt/counter_loader.rb
riak-client-2.2.0 lib/riak/client/beefcake/crdt/counter_loader.rb
riak-client-2.2.0.pre1 lib/riak/client/beefcake/crdt/counter_loader.rb
riak-client-2.1.0 lib/riak/client/beefcake/crdt/counter_loader.rb