Sha256: c8c767a296cb71a111ac28b96fcc41c44698569cd5c299b772573e361ae7882b
Contents?: true
Size: 682 Bytes
Versions: 58
Compression:
Stored size: 682 Bytes
Contents
# # Author:: Celso Fernandes (<fernandes@zertico.com>) # © Copyright IBM Corporation 2014. # # LICENSE: MIT (http://opensource.org/licenses/MIT) # module Fog module DNS class Softlayer class Mock def get_domain(id) @softlayer_domains.each do |domain| if domain[:id].to_i == id response = Excon::Response.new response.body = domain response.status = 200 return response end end raise Excon::Errors::NotFound end end class Real def get_domain(id) request(:dns_domain, id) end end end end end
Version data entries
58 entries across 56 versions & 3 rubygems