Method: CouchDB::Server#authentication_options

Defined in:
lib/couchdb/server.rb

#authentication_optionsObject



56
57
58
# File 'lib/couchdb/server.rb', line 56

def authentication_options
  self.username && self.password ? { :auth_type => :basic, :username => self.username, :password => self.password } : { }
end