class Smartdc::Client
Public Class Methods
new(options={})
click to toggle source
# File lib/smartdc/client.rb, line 28 def initialize(options={}) options = Smartdc.config.options.merge(options) auth = Smartdc::Auth.new(options) date = Time.now.gmtime.to_s @request_options = { builder: options[:middleware], url: options[:url], ssl: { verify: options[:ssl_verify] }, headers: { date: date, authorization: auth.signature(date), 'content-type' => 'application/json', accept: 'application/json', 'x-api-version' => options[:version] } } end