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(={}) @api_url = [:glesys_api_url] || Fog.credentials[:glesys_api_url] || API_URL @glesys_username = [:glesys_username] || Fog.credentials[:glesys_api_key] @glesys_api_key = [:glesys_api_key] || Fog.credentials[:glesys_api_key] @connection_options = [:connection_options] || {} end |