Module: Couchy

Defined in:
lib/couchy.rb,
lib/couchy/server.rb,
lib/couchy/database.rb

Defined Under Namespace

Classes: Database, Server

Class Method Summary collapse

Class Method Details

.new(server_uri = 'http://localhost:5984/') ⇒ Object

Shortcut for Couchy::Server.new

Parameters:

  • uri (String)

    The URI of the CouchDB server. defaults to “localhost:5984/”

Returns:

  • Couchy::Server



18
19
20
# File 'lib/couchy.rb', line 18

def self.new(server_uri='http://localhost:5984/')
  Server.new(server_uri)
end