Class: AssayDepot::ProviderWare

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



110
111
112
# File 'lib/assaydepot/endpoints.rb', line 110

def self.endpoint(id, format="json")
  "/providers/#{id.is_a?(Array) ? id[0] : id}/wares.#{format}"
end

.ref_nameObject



114
115
116
# File 'lib/assaydepot/endpoints.rb', line 114

def self.ref_name
  "ware_refs"
end