Method: Fog::Vcloud::Compute::Real#initialize
- Defined in:
- lib/fog/vcloud/compute.rb
permalink #initialize(options = {}) ⇒ Real
Returns a new instance of Real.
183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 |
# File 'lib/fog/vcloud/compute.rb', line 183 def initialize( = {}) require 'builder' require 'fog/core/parser' @connections = {} @connection_options = [:connection_options] || {} @persistent = [:persistent] @username = [:vcloud_username] @password = [:vcloud_password] @host = [:vcloud_host] @base_path = [:vcloud_base_path] || Fog::Vcloud::Compute::BASE_PATH @version = [:vcloud_version] || Fog::Vcloud::Compute::DEFAULT_VERSION @path = [:vcloud_path] || "#{@base_path}/v#{@version}" @port = [:vcloud_port] || Fog::Vcloud::Compute::PORT @scheme = [:vcloud_scheme] || Fog::Vcloud::Compute::SCHEME @vdc_href = [:vcloud_default_vdc] end |