Class: V1::Pacbio::AliquotResource

Inherits:
AliquotResource show all
Includes:
Shared::RunSuitability
Defined in:
app/resources/v1/pacbio/aliquot_resource.rb

Overview

TODO:

This documentation does not yet include a detailed description of what this resource represents.

TODO:

This documentation does not yet include detailed descriptions for relationships, attributes and filters.

TODO:

This documentation does not yet include any example usage of the API via cURL or similar.

Note:

Access this resource via the /v1/pacbio/aliquots/ endpoint.

Provides a JSON:API representation of Aliquot.

For more information about JSON:API see the JSON:API Specifications or look at the JSONAPI::Resources package for the service implementation of the JSON:API standard.

Direct Known Subclasses

Runs::AliquotResource

Constant Summary collapse

POLYMORPHIC_TYPES =

We could move this to a concern and dynamically build the polymorphic types but no need to do this unless we use this for any other pipelines for now this is best in here as it is specific to pacbio

%w[pacbio/requests pacbio/pools pacbio/libraries].freeze

Instance Attribute Summary

Attributes inherited from AliquotResource

#aliquot_type, #concentration, #insert_size, #source_id, #source_type, #state, #tag_id, #template_prep_kit_box_barcode, #used_by_id, #used_by_type, #volume

Class Method Summary collapse

Methods included from Shared::RunSuitability

#run_suitability

Class Method Details

.resource_klass_for(type) ⇒ Object

Aliquot polymorphism support. This fixes the polymorphic relationships in json-api resources as json-api resources underscores and pluralizes the type



36
37
38
# File 'app/resources/v1/pacbio/aliquot_resource.rb', line 36

def self.resource_klass_for(type)
  super(type.underscore.pluralize.gsub('pacbio/', ''))
end