Method: Fog::Compute::Slicehost::Real#initialize

Defined in:
lib/fog/slicehost/compute.rb

#initialize(options = {}) ⇒ Real

Returns a new instance of Real.



59
60
61
62
63
64
65
66
67
68
69
# File 'lib/fog/slicehost/compute.rb', line 59

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

  @slicehost_password = options[:slicehost_password]
  @connection_options = options[:connection_options] || {}
  @host       = options[:host]        || "api.slicehost.com"
  @persistent = options[:persistent]  || false
  @port       = options[:port]        || 443
  @scheme     = options[:scheme]      || 'https'
  @connection = Fog::Connection.new("#{@scheme}://#{@host}:#{@port}", @persistent, @connection_options)
end