Class: Dina::ManagedAttribute

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/dina/models/managed_attribute.rb

Instance Attribute Summary collapse

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_componentsObject

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_typesObject

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_componentsObject



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_typesObject



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_pathObject



23
24
25
# File 'lib/dina/models/managed_attribute.rb', line 23

def self.endpoint_path
  "collection-api/"
end

.table_nameObject



27
28
29
# File 'lib/dina/models/managed_attribute.rb', line 27

def self.table_name
  "managed-attribute"
end