Class: Api::V2::PlateResource
- Inherits:
-
BaseResource
- Object
- JSONAPI::Resource
- BaseResource
- Api::V2::PlateResource
- Includes:
- SharedBehaviour::Labware
- Defined in:
- app/resources/api/v2/plate_resource.rb
Overview
This resource cannot be modified after creation: its endpoint will not accept PATCH
requests.
Access this resource via the /api/v2/plates/
endpoint.
Provides a JSON:API representation of Plate which is plastic labware containing Wells. The plate has a purpose like all labware and this denotes which pipeline it is being used in and what type of samples it holds / how it will be processed. Plates are not typically created directly using this resource, although they can be. Rather they are created via resources such as PlateCreationResource.
For more information about JSON:API see the JSON:API Specifications or look at the JSONAPI::Resources package for Sequencescape’s implementation of the JSON:API standard.
Instance Attribute Summary collapse
-
#number_of_columns ⇒ Int
readonly
The number of columns on the plate.
-
#number_of_rows ⇒ Int
readonly
The number of rows on the plate.
-
#pooling_metadata ⇒ Hash
readonly
A hash containing submission UUIDs and corresponding pooling metadata.
-
#size ⇒ Int
The total number of wells on the plate.
-
#submission_pools ⇒ Array<SubmissionPoolResource>
readonly
An array of submission pools for this plate.
-
#transfers_as_destination ⇒ Array<TransferResource>
readonly
An array of transfers with this plate as the destination.
-
#wells ⇒ Array<WellResource>
An array of wells on this plate.
Method Summary
Methods included from SharedBehaviour::Labware
Methods inherited from BaseResource
apply_includes, creatable_fields, default_includes, #fetchable_fields, inclusions, resolve_relationship_names_to_relations, updatable_fields
Instance Attribute Details
#number_of_columns ⇒ Int (readonly)
Returns The number of columns on the plate. This is determined by the AssetShape assigned to the plate by its purpose.
65 |
# File 'app/resources/api/v2/plate_resource.rb', line 65 attribute :number_of_columns, readonly: true, delegate: :width |
#number_of_rows ⇒ Int (readonly)
Returns The number of rows on the plate. This is determined by the AssetShape assigned to the plate by its purpose.
60 |
# File 'app/resources/api/v2/plate_resource.rb', line 60 attribute :number_of_rows, readonly: true, delegate: :height |
#pooling_metadata ⇒ Hash (readonly)
Returns A hash containing submission UUIDs and corresponding pooling metadata.
96 |
# File 'app/resources/api/v2/plate_resource.rb', line 96 attribute :pooling_metadata, readonly: true |
#size ⇒ Int
This can only be set once during creation. If it is not set, it will default to 96.
Returns The total number of wells on the plate.
71 |
# File 'app/resources/api/v2/plate_resource.rb', line 71 attribute :size, write_once: true |
#submission_pools ⇒ Array<SubmissionPoolResource> (readonly)
Returns An array of submission pools for this plate.
108 |
# File 'app/resources/api/v2/plate_resource.rb', line 108 has_many :submission_pools, readonly: true |
#transfers_as_destination ⇒ Array<TransferResource> (readonly)
Returns An array of transfers with this plate as the destination.
112 |
# File 'app/resources/api/v2/plate_resource.rb', line 112 has_many :transfers_as_destination, readonly: true |
#wells ⇒ Array<WellResource>
This can only be set once during creation.
Returns An array of wells on this plate.
117 |
# File 'app/resources/api/v2/plate_resource.rb', line 117 has_many :wells, write_once: true |