Sha256: 9bbf7189feca960098f978ca2d2a44da0241c1d8731952a459c2297000829376

Contents?: true

Size: 363 Bytes

Versions: 5

Compression:

Stored size: 363 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

5 entries across 5 versions & 1 rubygems

Version Path
riak-client-2.4.1 lib/riak/client/beefcake/crdt/counter_loader.rb
riak-client-2.4.0 lib/riak/client/beefcake/crdt/counter_loader.rb
riak-client-2.4.0.pre1 lib/riak/client/beefcake/crdt/counter_loader.rb
riak-client-2.3.2 lib/riak/client/beefcake/crdt/counter_loader.rb
riak-client-2.3.1 lib/riak/client/beefcake/crdt/counter_loader.rb