Class: AssayDepot::TokenAuth

Inherits:
Object
  • Object
show all
Includes:
SearchModel
Defined in:
lib/assaydepot/endpoints.rb

Class Method Summary collapse

Methods included from SearchModel

#facets, #find, included, #initialize, #internal_results, #where

Class Method Details

.endpoint(site = "", format = nil) ⇒ Object



183
184
185
# File 'lib/assaydepot/endpoints.rb', line 183

def self.endpoint(site="", format=nil)
  "#{site}/oauth/token?grant_type=client_credentials"
end

.ref_nameObject



187
188
189
# File 'lib/assaydepot/endpoints.rb', line 187

def self.ref_name
  "access_token"
end