Class: Dina::ManagedAttribute
- Defined in:
- lib/dina/models/managed_attribute.rb
Instance Attribute Summary collapse
-
#accepted_components ⇒ Object
Returns the value of attribute accepted_components.
-
#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_components ⇒ Object
Returns the value of attribute accepted_components.
21 22 23 |
# File 'lib/dina/models/managed_attribute.rb', line 21 def accepted_components @accepted_components end |
#accepted_types ⇒ Object
Returns the value of attribute accepted_types.
21 22 23 |
# File 'lib/dina/models/managed_attribute.rb', line 21 def accepted_types @accepted_types end |
Class Method Details
.accepted_components ⇒ Object
31 32 33 34 35 36 37 38 39 |
# File 'lib/dina/models/managed_attribute.rb', line 31 def self.accepted_components [ "COLLECTING_EVENT", "MATERIAL_SAMPLE", "ORGANISM", "DETERMINATION", "ASSEMBLAGE" ] end |
.accepted_types ⇒ Object
41 42 43 44 45 46 47 48 49 50 |
# File 'lib/dina/models/managed_attribute.rb', line 41 def self.accepted_types [ "INTEGER", "DECIMAL", "STRING", "PICKLIST", "DATE", "BOOL" ] end |
.endpoint_path ⇒ Object
23 24 25 |
# File 'lib/dina/models/managed_attribute.rb', line 23 def self.endpoint_path "collection-api/" end |
.table_name ⇒ Object
27 28 29 |
# File 'lib/dina/models/managed_attribute.rb', line 27 def self.table_name "managed-attribute" end |