Class: Fog::DNS::Rackspace::Mock
Class Method Summary
collapse
Instance Method Summary
collapse
#authenticate, #endpoint_uri, #region, #service_name
Constructor Details
#initialize(options = {}) ⇒ Mock
Returns a new instance of Mock.
48
49
50
51
52
53
|
# File 'lib/fog/rackspace/dns.rb', line 48
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
55
56
57
58
|
# File 'lib/fog/rackspace/dns.rb', line 55
def self.data
@data ||= {
}
end
|
.reset ⇒ Object
60
61
62
|
# File 'lib/fog/rackspace/dns.rb', line 60
def self.reset
@data = nil
end
|
Instance Method Details
#data ⇒ Object
64
65
66
|
# File 'lib/fog/rackspace/dns.rb', line 64
def data
self.class.data
end
|
#reset_data ⇒ Object
68
69
70
|
# File 'lib/fog/rackspace/dns.rb', line 68
def reset_data
self.class.reset
end
|