Class: Fog::Compute::Glesys::Mock

Inherits:
Object
  • Object
show all
Defined in:
lib/fog/glesys/compute.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Mock

Returns a new instance of Mock.



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

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

Class Method Details

.dataObject



50
51
52
53
# File 'lib/fog/glesys/compute.rb', line 50

def self.data
  @data ||= {
  }
end

.resetObject



55
56
57
# File 'lib/fog/glesys/compute.rb', line 55

def self.reset
  @data = nil
end

Instance Method Details

#dataObject



59
60
61
# File 'lib/fog/glesys/compute.rb', line 59

def data
  self.class.data
end

#reset_dataObject



63
64
65
# File 'lib/fog/glesys/compute.rb', line 63

def reset_data
  self.class.reset
end