Class: Tasks::BrowseAnnotationsController

Inherits:
ApplicationController
  • Object
show all
Includes:
TaskControllerConfiguration
Defined in:
app/controllers/tasks/object_annotations/browse_annotations_controller.rb

Instance Method Summary collapse

Methods included from TaskControllerConfiguration

#set_is_task_controller

Instance Method Details

#annotation_forObject


20
21
22
# File 'app/controllers/tasks/object_annotations/browse_annotations_controller.rb', line 20

def annotation_for
  render({json: params})
end

#annotation_onObject


16
17
18
# File 'app/controllers/tasks/object_annotations/browse_annotations_controller.rb', line 16

def annotation_on
  render({json: params})
end

#get_for_listObject


24
25
26
27
28
29
30
31
# File 'app/controllers/tasks/object_annotations/browse_annotations_controller.rb', line 24

def get_for_list
  render(json: {
    "tag": "selected keyword)",
    "data_attribute": "selected predicate",
    "alternate_value": "selected alternate value",
    "notes": "notes"
  })
end

#get_model_listObject


42
43
44
45
46
47
48
49
# File 'app/controllers/tasks/object_annotations/browse_annotations_controller.rb', line 42

def get_model_list
  render(
    json: {
      otu: 'by OTU',
      taxon_name: 'by Taxon Name',
      specimen: 'by Specimen'}
  )
end

#get_typeObject


8
9
10
# File 'app/controllers/tasks/object_annotations/browse_annotations_controller.rb', line 8

def get_type
  render({json: params})
end

#get_type_listObject


12
13
14
# File 'app/controllers/tasks/object_annotations/browse_annotations_controller.rb', line 12

def get_type_list
  render(json: AnnotationsController.types)
end

#indexObject

GET


5
6
# File 'app/controllers/tasks/object_annotations/browse_annotations_controller.rb', line 5

def index
end

#process_submitObject


34
35
36
# File 'app/controllers/tasks/object_annotations/browse_annotations_controller.rb', line 34

def process_submit
  render({json: params})
end

#set_datesObject


51
52
53
# File 'app/controllers/tasks/object_annotations/browse_annotations_controller.rb', line 51

def set_dates
  render({json: params})
end

#set_logicObject


55
56
57
# File 'app/controllers/tasks/object_annotations/browse_annotations_controller.rb', line 55

def set_logic
  render({json: params})
end

#set_modelObject


38
39
40
# File 'app/controllers/tasks/object_annotations/browse_annotations_controller.rb', line 38

def set_model
  render({json: params})
end