Class: Ropenstack::Database
- Inherits:
-
OpenstackService
- Object
- Rest
- OpenstackService
- Ropenstack::Database
- Defined in:
- lib/ropenstack/database.rb
Overview
-
Name: Database
-
Description: Implementation of the Block Storage API Client in Ruby.
-
Author: Sam ‘Tehsmash’ Betts, John Davidge
-
Date: 30/06/2014
Defined Under Namespace
Modules: Version1
Instance Method Summary collapse
-
#initialize(location, token, type, accountid) ⇒ Database
constructor
A new instance of Database.
Methods inherited from Rest
#build_headers, #build_http, #delete_request, #do_request, #error_manager, #get_request, #post_request, #put_request
Constructor Details
#initialize(location, token, type, accountid) ⇒ Database
Returns a new instance of Database.
14 15 16 17 18 19 20 21 22 |
# File 'lib/ropenstack/database.rb', line 14 def initialize(location, token, type, accountid) super(location, token) @accountid = accountid case type when "database" then extend Version1 else raise Ropenstack::RopenstackError, "Invalid type passed to Database" end end |