Class: Riak::Client::BeefcakeProtobuffsBackend::RpbBucketProps

Inherits:
Object
  • Object
show all
Includes:
Beefcake::Message
Defined in:
lib/riak/client/beefcake/messages.rb,
lib/riak/client/beefcake/messages.rb,
lib/riak/client/beefcake/message_overlay.rb

Defined Under Namespace

Modules: RpbReplMode

Instance Method Summary collapse

Instance Method Details

#chash_keyfun=(newval) ⇒ Object



43
44
45
# File 'lib/riak/client/beefcake/message_overlay.rb', line 43

def chash_keyfun=(newval)
  @chash_keyfun = clean_modfun newval
end

#has_postcommit=(newval) ⇒ Object



38
39
40
41
# File 'lib/riak/client/beefcake/message_overlay.rb', line 38

def has_postcommit=(newval)
  @has_postcommit = newval
  @postcommit ||= [] if newval
end

#has_precommit=(newval) ⇒ Object



27
28
29
30
# File 'lib/riak/client/beefcake/message_overlay.rb', line 27

def has_precommit=(newval)
  @has_precommit = newval
  @precommit ||= [] if newval
end

#linkfun=(newval) ⇒ Object



47
48
49
# File 'lib/riak/client/beefcake/message_overlay.rb', line 47

def linkfun=(newval)
  @linkfun = clean_modfun newval
end

#postcommit=(newval) ⇒ Object



32
33
34
35
36
# File 'lib/riak/client/beefcake/message_overlay.rb', line 32

def postcommit=(newval)
  newval = clean_hook newval
  @postcommit = newval
  @has_postcommit = !!newval
end

#precommit=(newval) ⇒ Object

“repeated” elements with zero items are indistinguishable from a nil, so we have to manage has_precommit/has_postcommit flags.



21
22
23
24
25
# File 'lib/riak/client/beefcake/message_overlay.rb', line 21

def precommit=(newval)
  newval = clean_hook newval
  @precommit = newval
  @has_precommit = !!newval
end