Class: Dina::MaterialSample
- Defined in:
- lib/dina/models/material_sample/material_sample.rb
Instance Attribute Summary collapse
-
#accepted_types ⇒ Object
Returns the value of attribute accepted_types.
Class Method Summary collapse
Methods inherited from BaseModel
custom_headers, find_by_group, #initialize, properties, site
Constructor Details
This class inherits a constructor from Dina::BaseModel
Instance Attribute Details
#accepted_types ⇒ Object
Returns the value of attribute accepted_types.
62 63 64 |
# File 'lib/dina/models/material_sample/material_sample.rb', line 62 def accepted_types @accepted_types end |
Class Method Details
.accepted_types ⇒ Object
72 73 74 75 76 77 78 79 80 |
# File 'lib/dina/models/material_sample/material_sample.rb', line 72 def self.accepted_types [ "WHOLE_ORGANISM", "CULTURE_STRAIN", "ORGANISM_PART", "MIXED_ORGANISMS", "MOLECULAR_SAMPLE" ] end |
.endpoint_path ⇒ Object
64 65 66 |
# File 'lib/dina/models/material_sample/material_sample.rb', line 64 def self.endpoint_path "collection-api/" end |
.table_name ⇒ Object
68 69 70 |
# File 'lib/dina/models/material_sample/material_sample.rb', line 68 def self.table_name "material-sample" end |