Class: Couchy::Database

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Includes:
Resources::Document
Defined in:
lib/couchy/database.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject (readonly)

Returns the value of attribute name.



10
11
12
# File 'lib/couchy/database.rb', line 10

def name
  @name
end

#serverObject (readonly)

Returns the value of attribute server.



10
11
12
# File 'lib/couchy/database.rb', line 10

def server
  @server
end