Method: Fog::Compute::Bluebox::Real#initialize
- Defined in:
- lib/fog/bluebox/compute.rb
#initialize(options = {}) ⇒ Real
Returns a new instance of Real.
64 65 66 67 68 69 70 71 72 73 74 |
# File 'lib/fog/bluebox/compute.rb', line 64 def initialize(={}) require 'multi_json' @bluebox_api_key = [:bluebox_api_key] @bluebox_customer_id = [:bluebox_customer_id] @connection_options = [:connection_options] || {} @host = [:bluebox_host] || "boxpanel.bluebox.net" @persistent = [:persistent] || false @port = [:bluebox_port] || 443 @scheme = [:bluebox_scheme] || 'https' @connection = Fog::Connection.new("#{@scheme}://#{@host}:#{@port}", @persistent, @connection_options) end |