Method: Fog::DNS::Zerigo::Real#initialize

Defined in:
lib/fog/zerigo/dns.rb

#initialize(options = {}) ⇒ Real

Returns a new instance of Real.



73
74
75
76
77
78
79
80
81
82
83
84
# File 'lib/fog/zerigo/dns.rb', line 73

def initialize(options={})
  require 'fog/core/parser'

  @zerigo_email  = options[:zerigo_email]
  @zerigo_token  = options[:zerigo_token]
  @connection_options = options[:connection_options] || {}
  @host       = options[:host]        || "ns.zerigo.com"
  @persistent = options[:persistent]  || false
  @port       = options[:port]        || 80
  @scheme     = options[:scheme]      || 'http'
  @connection = Fog::Connection.new("#{@scheme}://#{@host}:#{@port}", @persistent, @connection_options)
end