Class: V1::Ont::PlateResource

Inherits:
JSONAPI::Resource
  • Object
show all
Defined in:
app/resources/v1/ont/plate_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/ont/plates/ endpoint.

Provides a JSON:API representation of Plate.

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.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#barcodeString

Returns the barcode of the plate.

Returns:

  • (String)

    the barcode of the plate



22
# File 'app/resources/v1/ont/plate_resource.rb', line 22

attributes :barcode, :created_at

#created_atString

Returns the creation timestamp of the plate.

Returns:

  • (String)

    the creation timestamp of the plate



22
# File 'app/resources/v1/ont/plate_resource.rb', line 22

attributes :barcode, :created_at

Class Method Details

.records(_options = {}) ⇒ Object



31
32
33
# File 'app/resources/v1/ont/plate_resource.rb', line 31

def self.records(_options = {})
  super.by_pipeline(:ont)
end