Method: Fog::DNS::Rage4::Real#initialize
- Defined in:
- lib/fog/rage4/dns.rb
#initialize(options = {}) ⇒ Real
Returns a new instance of Real.
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/fog/rage4/dns.rb', line 35 def initialize(={}) @rage4_email = [:rage4_email] @rage4_password = [:rage4_api_key] @connection_options = [:connection_options] || {} if [:rage4_url] uri = URI.parse([:rage4_url]) [:host] = uri.host [:port] = uri.port [:scheme] = uri.scheme end @host = [:host] || "secure.rage4.com" @persistent = [:persistent] || false @port = [:port] || 443 @scheme = [:scheme] || 'https' @connection = Fog::XML::Connection.new("#{@scheme}://#{@host}:#{@port}", @persistent, @connection_options) end |