Class: Fog::DNS::Rackspace::Mock
- Inherits:
-
Object
- Object
- Fog::DNS::Rackspace::Mock
- Defined in:
- lib/fog/rackspace/dns.rb
Class Method Summary collapse
Instance Method Summary collapse
- #data ⇒ Object
-
#initialize(options = {}) ⇒ Mock
constructor
A new instance of Mock.
- #reset_data ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Mock
Returns a new instance of Mock.
40 41 42 43 44 45 |
# File 'lib/fog/rackspace/dns.rb', line 40 def initialize(={}) @rackspace_api_key = [:rackspace_api_key] @rackspace_username = [:rackspace_username] @rackspace_auth_url = [:rackspace_auth_url] @connection_options = [:connection_options] || {} end |
Class Method Details
.data ⇒ Object
47 48 49 50 |
# File 'lib/fog/rackspace/dns.rb', line 47 def self.data @data ||= { } end |
.reset ⇒ Object
52 53 54 |
# File 'lib/fog/rackspace/dns.rb', line 52 def self.reset @data = nil end |
Instance Method Details
#data ⇒ Object
56 57 58 |
# File 'lib/fog/rackspace/dns.rb', line 56 def data self.class.data end |
#reset_data ⇒ Object
60 61 62 |
# File 'lib/fog/rackspace/dns.rb', line 60 def reset_data self.class.reset end |