Class: Couchy::Database
- Inherits:
-
Object
- Object
- Couchy::Database
- Extended by:
- Forwardable
- Includes:
- Resources::Document
- Defined in:
- lib/couchy/database.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#server ⇒ Object
readonly
Returns the value of attribute server.
Instance Method Summary collapse
-
#initialize(name, server) ⇒ Database
constructor
A new instance of Database.
Methods included from Resources::Document
#delete_document, #get_document, #save_document
Constructor Details
#initialize(name, server) ⇒ Database
Returns a new instance of Database.
12 13 14 15 |
# File 'lib/couchy/database.rb', line 12 def initialize(name, server) @name = name @server = server end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
10 11 12 |
# File 'lib/couchy/database.rb', line 10 def name @name end |
#server ⇒ Object (readonly)
Returns the value of attribute server.
10 11 12 |
# File 'lib/couchy/database.rb', line 10 def server @server end |