Top Level Namespace

Defined Under Namespace

Modules: NimbleApi

Instance Method Summary collapse

Instance Method Details

#NimbleApi(options = {}) ⇒ Object



10
11
12
13
14
15
# File 'lib/nimble-api.rb', line 10

def NimbleApi(options={})
  options[:client_id] = NimbleApi.client_id if NimbleApi.client_id
  options[:client_secret] = NimbleApi.client_secret if NimbleApi.client_secret
  options[:refresh_token] = NimbleApi.refresh_token if NimbleApi.refresh_token
  NimbleApi::Base.new(options)
end