Class/Module Index [+]

Quicksearch

Sequel::Plugins::Sharding::InstanceMethods

Public Instance Methods

set_server(s) click to toggle source

Set the shard that this object is tied to. Returns self.

# File lib/sequel/plugins/sharding.rb, line 47
def set_server(s)
  @server = s
  self
end
set_server?(s) click to toggle source

Set the server that this object is tied to, unless it has already been set. Returns self.

# File lib/sequel/plugins/sharding.rb, line 54
def set_server?(s)
  @server ||= s
  self
end
this() click to toggle source

Ensure that the instance dataset is tied to the correct shard.

# File lib/sequel/plugins/sharding.rb, line 60
def this
  use_server(super)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.