class Fog::DNS::DNSMadeEasy::Mock
Public Class Methods
data()
click to toggle source
# File lib/fog/dnsmadeeasy/dns.rb, line 38 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 48 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 44 def self.reset @data = nil end
Public Instance Methods
data()
click to toggle source
# File lib/fog/dnsmadeeasy/dns.rb, line 53 def data self.class.data[@dnsmadeeasy_api_key] end
reset_data()
click to toggle source
# File lib/fog/dnsmadeeasy/dns.rb, line 57 def reset_data self.class.data.delete(@dnsmadeeasy_api_key) end