class Stretch::Client
Public Class Methods
new(options = {})
click to toggle source
# File lib/stretch/client.rb, line 7 def initialize options = {} self.tap do @connection = Stretch::Connection.new options end end
Public Instance Methods
cluster()
click to toggle source
# File lib/stretch/client.rb, line 13 def cluster Cluster.new @connection end
index(name)
click to toggle source
# File lib/stretch/client.rb, line 17 def index name Index.new name, @connection end