Class: Dina::ObjectStore

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

Instance Attribute Summary collapse

Class Method Summary collapse

Methods inherited from BaseModel

custom_headers, #english_description, find_by_group, #french_description, site

Instance Attribute Details

#accepted_typesObject

Returns the value of attribute accepted_types.



38
39
40
# File 'lib/dina/models/object_store.rb', line 38

def accepted_types
  @accepted_types
end

Class Method Details

.accepted_typesObject



48
49
50
51
52
53
54
55
56
57
# File 'lib/dina/models/object_store.rb', line 48

def self.accepted_types
  [
    "IMAGE",
    "MOVING_IMAGE",
    "SOUND",
    "TEXT",
    "DATASET",
    "UNDETERMINED"
  ]
end

.endpoint_pathObject



40
41
42
# File 'lib/dina/models/object_store.rb', line 40

def self.endpoint_path
  "objectstore-api/"
end

.table_nameObject



44
45
46
# File 'lib/dina/models/object_store.rb', line 44

def self.table_name
  "metadata"
end