class Fog::DNS::DNSMadeEasy::Mock
Public Class Methods
data()
click to toggle source
# File lib/fog/dnsmadeeasy/dns.rb, line 36 def self.data @data ||= Hash.new do |hash, key| hash[key] = {} end end
new(options={})
click to toggle source
# File lib/fog/dnsmadeeasy/dns.rb, line 46 def initialize(options={}) @dnsmadeeasy_api_key = options[:dnsmadeeasy_api_key] @dnsmadeeasy_secret_key = options[:dnsmadeeasy_secret_key] end
reset()
click to toggle source
# File lib/fog/dnsmadeeasy/dns.rb, line 42 def self.reset @data = nil end
Public Instance Methods
data()
click to toggle source
# File lib/fog/dnsmadeeasy/dns.rb, line 51 def data self.class.data[@dnsmadeeasy_api_key] end
reset_data()
click to toggle source
# File lib/fog/dnsmadeeasy/dns.rb, line 55 def reset_data self.class.data.delete(@dnsmadeeasy_api_key) end