Class: Fog::DNS::Rackspace::Mock

Inherits:
Rackspace::Service show all
Defined in:
lib/fog/rackspace/dns.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Rackspace::Service

#authenticate, #endpoint_uri, #region, #request, #request_without_retry, #service_name, #service_net?

Constructor Details

#initialize(options = {}) ⇒ Mock

Returns a new instance of Mock.



53
54
55
56
57
58
# File 'lib/fog/rackspace/dns.rb', line 53

def initialize(options={})
  @rackspace_api_key = options[:rackspace_api_key]
  @rackspace_username = options[:rackspace_username]
  @rackspace_auth_url = options[:rackspace_auth_url]
  @connection_options = options[:connection_options] || {}
end

Class Method Details

.dataObject



60
61
62
63
# File 'lib/fog/rackspace/dns.rb', line 60

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

.resetObject



65
66
67
# File 'lib/fog/rackspace/dns.rb', line 65

def self.reset
  @data = nil
end

Instance Method Details

#dataObject



69
70
71
# File 'lib/fog/rackspace/dns.rb', line 69

def data
  self.class.data
end

#reset_dataObject



73
74
75
# File 'lib/fog/rackspace/dns.rb', line 73

def reset_data
  self.class.reset
end