Class: AssayDepot::User

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(id = nil, format = "json") ⇒ Object



126
127
128
# File 'lib/assaydepot/endpoints.rb', line 126

def self.endpoint(id=nil, format="json")
  get_endpoint(id == nil || id[0] == nil ? nil : 'profile', "users", format)
end

.profileObject



122
123
124
# File 'lib/assaydepot/endpoints.rb', line 122

def self.profile
  get(id: "profile")
end

.ref_nameObject



130
131
132
# File 'lib/assaydepot/endpoints.rb', line 130

def self.ref_name
  "user_refs"
end