Class: Tasks::ObjectAnnotations::BrowseAnnotationsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Tasks::ObjectAnnotations::BrowseAnnotationsController
- Includes:
- TaskControllerConfiguration
- Defined in:
- app/controllers/tasks/object_annotations/browse_annotations_controller.rb
Instance Method Summary collapse
- #annotation_for ⇒ Object
- #annotation_on ⇒ Object
- #get_for_list ⇒ Object
- #get_model_list ⇒ Object
- #get_type ⇒ Object
- #get_type_list ⇒ Object
-
#index ⇒ Object
GET.
- #process_submit ⇒ Object
- #set_dates ⇒ Object
- #set_logic ⇒ Object
- #set_model ⇒ Object
Methods included from TaskControllerConfiguration
Instance Method Details
#annotation_for ⇒ Object
20 21 22 |
# File 'app/controllers/tasks/object_annotations/browse_annotations_controller.rb', line 20 def annotation_for render({json: params}) end |
#annotation_on ⇒ Object
16 17 18 |
# File 'app/controllers/tasks/object_annotations/browse_annotations_controller.rb', line 16 def annotation_on render({json: params}) end |
#get_for_list ⇒ Object
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_list ⇒ Object
41 42 43 44 45 46 47 48 |
# File 'app/controllers/tasks/object_annotations/browse_annotations_controller.rb', line 41 def get_model_list render( json: { otu: 'by OTU', taxon_name: 'by Taxon Name', specimen: 'by Specimen'} ) end |
#get_type ⇒ Object
8 9 10 |
# File 'app/controllers/tasks/object_annotations/browse_annotations_controller.rb', line 8 def get_type render({json: params}) end |
#get_type_list ⇒ Object
12 13 14 |
# File 'app/controllers/tasks/object_annotations/browse_annotations_controller.rb', line 12 def get_type_list render(json: AnnotationsController.types) end |
#index ⇒ Object
GET
5 6 |
# File 'app/controllers/tasks/object_annotations/browse_annotations_controller.rb', line 5 def index end |
#process_submit ⇒ Object
33 34 35 |
# File 'app/controllers/tasks/object_annotations/browse_annotations_controller.rb', line 33 def process_submit render({json: params}) end |
#set_dates ⇒ Object
50 51 52 |
# File 'app/controllers/tasks/object_annotations/browse_annotations_controller.rb', line 50 def set_dates render({json: params}) end |
#set_logic ⇒ Object
54 55 56 |
# File 'app/controllers/tasks/object_annotations/browse_annotations_controller.rb', line 54 def set_logic render({json: params}) end |
#set_model ⇒ Object
37 38 39 |
# File 'app/controllers/tasks/object_annotations/browse_annotations_controller.rb', line 37 def set_model render({json: params}) end |