Class: Api::V2::AliquotResource

Inherits:
BaseResource
  • Object
show all
Defined in:
app/resources/api/v2/aliquot_resource.rb

Overview

Provides a JSON API representation of aliquot See: jsonapi-resources.com/ for JSONAPI::Resource documentation

Instance Method Summary collapse

Methods inherited from BaseResource

apply_includes, default_includes, inclusions, resolve_relationship_names_to_relations, updatable_fields

Instance Method Details

#tag2_indexObject


45
46
47
# File 'app/resources/api/v2/aliquot_resource.rb', line 45

def tag2_index
  _model.tag2&.map_id
end

#tag2_oligoObject


41
42
43
# File 'app/resources/api/v2/aliquot_resource.rb', line 41

def tag2_oligo
  _model.tag2&.oligo
end

#tag_indexObject


37
38
39
# File 'app/resources/api/v2/aliquot_resource.rb', line 37

def tag_index
  _model.tag&.map_id
end

#tag_oligoObject

Custom methods These shouldn't be used for business logic, and a more about I/O and isolating implementation details.


33
34
35
# File 'app/resources/api/v2/aliquot_resource.rb', line 33

def tag_oligo
  _model.tag&.oligo
end