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( = {}) [:client_id] ||= @client_id [:client_secret] ||= @client_secret [:api_key] ||= @api_key [:api_base] ||= @api_base_url [:skip_auto_refresh] = @skip_auto_refresh if [:skip_auto_refresh].nil? Vhx.client = Vhx::Client.new() end |