Class: Rest::Database
Instance Attribute Summary collapse
-
#server ⇒ Object
readonly
Returns the value of attribute server.
Attributes inherited from Resource
Instance Method Summary collapse
-
#initialize(server, name) ⇒ Database
constructor
A new instance of Database.
Methods inherited from Resource
#delete, #get, nested_resource, #nested_resource_path, #post, #put
Constructor Details
#initialize(server, name) ⇒ Database
Returns a new instance of Database.
13 14 15 16 |
# File 'lib/rest/database.rb', line 13 def initialize(server, name) @server = server super(server.connection, "/#{name}/", server.username, server.password) end |
Instance Attribute Details
#server ⇒ Object (readonly)
Returns the value of attribute server.
3 4 5 |
# File 'lib/rest/database.rb', line 3 def server @server end |