Method: Fog::DNS::DNSMadeEasy::Real#initialize
- Defined in:
- lib/fog/dnsmadeeasy/dns.rb
#initialize(options = {}) ⇒ Real
Initialize connection to DNS Made Easy
Notes
options parameter must include values for :dnsmadeeasy_api_key and :dnsmadeeasy_secret_key in order to create a connection
Examples
dns = Fog::DNS::DNSMadeEasy.new(
:dnsmadeeasy_api_key => your_dnsmadeeasy_api_key,
:dnsmadeeasy_secret_key => your_dnsmadeeasy_secret_key
)
Parameters
-
options<~Hash> - config arguments for connection. Defaults to {}.
Returns
-
dns object with connection to aws.
81 82 83 84 85 86 87 88 89 90 91 92 93 |
# File 'lib/fog/dnsmadeeasy/dns.rb', line 81 def initialize(={}) require 'fog/core/parser' require 'multi_json' @dnsmadeeasy_api_key = [:dnsmadeeasy_api_key] @dnsmadeeasy_secret_key = [:dnsmadeeasy_secret_key] @connection_options = [:connection_options] || {} @host = [:host] || 'api.dnsmadeeasy.com' @persistent = [:persistent] || true @port = [:port] || 80 #443 Not yet @scheme = [:scheme] || 'http' #'https Not yet @connection = Fog::Connection.new("#{@scheme}://#{@host}:#{@port}", @persistent, @connection_options) end |