Class: Api::V2::VolumeUpdateResource
- Inherits:
-
BaseResource
- Object
- JSONAPI::Resource
- BaseResource
- Api::V2::VolumeUpdateResource
- Defined in:
- app/resources/api/v2/volume_update_resource.rb
Overview
Access this resource via the /api/v2/volume_updates/
endpoint.
Updates are not allowed on this resource @see self.updatable_fields
Provides a JSON:API representation of VolumeUpdate for the tracking of volume changes associated with labware.
Performs a change of volume on a resource Primarily created on plates via Assets Audits application to indicate reduced volume on, eg. working dilution creation. No records exist on 29/05/2019 due to no volumes configured for processes
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
-
#created_by ⇒ String
The user who created the volume update.
-
#target_uuid ⇒ String
Transforms the target Labware into its UUID when generating an API query response.
-
#volume_change ⇒ Float
The amount of volume change that occurred on the target labware.
Class Method Summary collapse
-
.updatable_fields(_context) ⇒ Array<Symbol>
Gets the list of fields which are updatable on an existing VolumeUpdate.
Methods inherited from BaseResource
apply_includes, creatable_fields, default_includes, #fetchable_fields, inclusions, resolve_relationship_names_to_relations
Instance Attribute Details
#created_by ⇒ String
This attribute is required.
The user who created the volume update.
48 |
# File 'app/resources/api/v2/volume_update_resource.rb', line 48 attribute :created_by |
#target_uuid ⇒ String
Transforms the target Labware into its UUID when generating an API query response.
54 |
# File 'app/resources/api/v2/volume_update_resource.rb', line 54 attribute :target_uuid |
#volume_change ⇒ Float
This attribute is required.
The amount of volume change that occurred on the target labware.
60 |
# File 'app/resources/api/v2/volume_update_resource.rb', line 60 attribute :volume_change |
Class Method Details
.updatable_fields(_context) ⇒ Array<Symbol>
Gets the list of fields which are updatable on an existing VolumeUpdate.
89 90 91 |
# File 'app/resources/api/v2/volume_update_resource.rb', line 89 def self.updatable_fields(_context) [] # Do not allow updating any fields. end |