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(={}) require 'fog/core/parser' @slicehost_password = [:slicehost_password] @connection_options = [:connection_options] || {} @host = [:host] || "api.slicehost.com" @persistent = [:persistent] || false @port = [:port] || 443 @scheme = [:scheme] || 'https' @connection = Fog::Connection.new("#{@scheme}://#{@host}:#{@port}", @persistent, @connection_options) end |