Method: Fog::Compute::Glesys::Mock#initialize

Defined in:
lib/fog/glesys/compute.rb

#initialize(options = {}) ⇒ Mock

Returns a new instance of Mock.



44
45
46
47
48
49
# File 'lib/fog/glesys/compute.rb', line 44

def initialize(options={})
  @api_url            = options[:glesys_api_url] || Fog.credentials[:glesys_api_url] || API_URL
  @glesys_username    = options[:glesys_username] || Fog.credentials[:glesys_api_key]
  @glesys_api_key     = options[:glesys_api_key] || Fog.credentials[:glesys_api_key]
  @connection_options = options[:connection_options] || {}
end