Class: CouchDB::UserDatabase
- Inherits:
-
Object
- Object
- CouchDB::UserDatabase
- Defined in:
- lib/couchdb/user_database.rb
Overview
Wraps all methods for the user database.
Instance Attribute Summary collapse
-
#database ⇒ Object
readonly
Returns the value of attribute database.
-
#server ⇒ Object
readonly
Returns the value of attribute server.
Instance Method Summary collapse
-
#initialize(server, name = "_users") ⇒ UserDatabase
constructor
A new instance of UserDatabase.
- #users ⇒ Object
Constructor Details
#initialize(server, name = "_users") ⇒ UserDatabase
Returns a new instance of UserDatabase.
8 9 10 11 |
# File 'lib/couchdb/user_database.rb', line 8 def initialize(server, name = "_users") @server = server @database = CouchDB::Database.new @server, name end |
Instance Attribute Details
#database ⇒ Object (readonly)
Returns the value of attribute database.
6 7 8 |
# File 'lib/couchdb/user_database.rb', line 6 def database @database end |
#server ⇒ Object (readonly)
Returns the value of attribute server.
5 6 7 |
# File 'lib/couchdb/user_database.rb', line 5 def server @server end |