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(={}) require 'fog/core/parser' @zerigo_email = [:zerigo_email] @zerigo_token = [:zerigo_token] @connection_options = [:connection_options] || {} @host = [:host] || "ns.zerigo.com" @persistent = [:persistent] || false @port = [:port] || 80 @scheme = [:scheme] || 'http' @connection = Fog::Connection.new("#{@scheme}://#{@host}:#{@port}", @persistent, @connection_options) end |