Class: Fog::Compute::Ninefold::Mock
- Inherits:
-
Object
- Object
- Fog::Compute::Ninefold::Mock
- Defined in:
- lib/fog/compute/ninefold.rb
Instance Method Summary collapse
-
#initialize(options) ⇒ Mock
constructor
A new instance of Mock.
- #request(options) ⇒ Object
Constructor Details
#initialize(options) ⇒ Mock
Returns a new instance of Mock.
62 63 64 65 66 67 68 69 |
# File 'lib/fog/compute/ninefold.rb', line 62 def initialize() require 'multi_json' @api_url = [:ninefold_api_url] || Fog.credentials[:ninefold_api_url] || API_URL @ninefold_compute_key = [:ninefold_compute_key] || Fog.credentials[:ninefold_compute_key] @ninefold_compute_secret = [:ninefold_compute_secret] || Fog.credentials[:ninefold_compute_secret] @connection = Fog::Connection.new(@api_url) end |
Instance Method Details
#request(options) ⇒ Object
71 72 73 |
# File 'lib/fog/compute/ninefold.rb', line 71 def request() raise "Not implemented" end |