Class: AssayDepot::List

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

Class Method Summary collapse

Methods included from DatabaseModel

#all, included, #internal_results

Class Method Details

.create(slug, name) ⇒ Object



207
208
209
# File 'lib/assaydepot/endpoints.rb', line 207

def self.create(slug, name)
  post(body: { slug: slug, name: name })
end

.endpoint(id = nil, format = "json") ⇒ Object



211
212
213
# File 'lib/assaydepot/endpoints.rb', line 211

def self.endpoint(id=nil, format="json")
  get_endpoint(id, "dynamic_lists", format)
end

.ref_nameObject



215
216
217
# File 'lib/assaydepot/endpoints.rb', line 215

def self.ref_name
  "dynamic_lists"
end