Method: Vhx.setup

Defined in:
lib/vhx.rb

.setup(options = {}) ⇒ Object



37
38
39
40
41
42
43
44
# File 'lib/vhx.rb', line 37

def setup(options = {})
  options[:client_id]         ||= @client_id
  options[:client_secret]     ||= @client_secret
  options[:api_key]           ||= @api_key
  options[:api_base]          ||= @api_base_url
  options[:skip_auto_refresh]   = @skip_auto_refresh if options[:skip_auto_refresh].nil?
  Vhx.client = Vhx::Client.new(options)
end