Class: Fog::DNS::Rackspace::Mock
Class Method Summary
collapse
Instance Method Summary
collapse
#authenticate, #endpoint_uri, #region, #request, #request_without_retry, #service_name, #service_net?
Constructor Details
#initialize(options = {}) ⇒ Mock
Returns a new instance of Mock.
54
55
56
57
58
59
|
# File 'lib/fog/rackspace/dns.rb', line 54
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
.data ⇒ Object
61
62
63
64
|
# File 'lib/fog/rackspace/dns.rb', line 61
def self.data
@data ||= {
}
end
|
.reset ⇒ Object
66
67
68
|
# File 'lib/fog/rackspace/dns.rb', line 66
def self.reset
@data = nil
end
|
Instance Method Details
#data ⇒ Object
70
71
72
|
# File 'lib/fog/rackspace/dns.rb', line 70
def data
self.class.data
end
|
#reset_data ⇒ Object
74
75
76
|
# File 'lib/fog/rackspace/dns.rb', line 74
def reset_data
self.class.reset
end
|