class Riak::Client::BeefcakeProtobuffsBackend::CrdtLoader::CounterLoader

Public Class Methods

for_value(resp) click to toggle source
# File lib/riak/client/beefcake/crdt/counter_loader.rb, line 4
def self.for_value(resp)
  return nil unless resp.counter_value
  new resp.counter_value
end
new(counter_value) click to toggle source
# File lib/riak/client/beefcake/crdt/counter_loader.rb, line 9
def initialize(counter_value)
  @value = counter_value
end

Public Instance Methods

rubyfy() click to toggle source
# File lib/riak/client/beefcake/crdt/counter_loader.rb, line 13
def rubyfy
  @value
end