Class: Api::V2::BaitLibraryLayoutResource
- Inherits:
-
BaseResource
- Object
- JSONAPI::Resource
- BaseResource
- Api::V2::BaitLibraryLayoutResource
- Defined in:
- app/resources/api/v2/bait_library_layout_resource.rb
Overview
This resource cannot be modified after creation; its endpoint will not accept PATCH
requests.
Access this resource via the /api/v2/bait_library_layouts/
endpoint.
Provides a JSON:API representation of BaitLibraryLayout.
This resource represents the layout of bait libraries on a specific plate. It is primarily used to retrieve information about the arrangement of bait libraries.
}
For more information about JSON:API, see the JSON:API Specifications or refer to the JSONAPI::Resources package for Sequencescape's implementation of the JSON:API standard.
Instance Attribute Summary collapse
-
#layout ⇒ Hash
readonly
The layout of the bait libraries on the plate.
-
#plate ⇒ PlateResource
Setting this relationship alongside the
plate_uuid
attribute will override the attribute value. -
#plate_uuid ⇒ void
writeonly
deprecated
Deprecated.
Use the
plate
relationship instead. -
#user ⇒ UserResource
Setting this relationship alongside the
user_uuid
attribute will override the attribute value. -
#user_uuid ⇒ void
writeonly
deprecated
Deprecated.
Use the
user
relationship instead. -
#uuid ⇒ String
readonly
The UUID of the bait library layout.
Method Summary
Methods inherited from BaseResource
apply_includes, creatable_fields, default_includes, #fetchable_fields, inclusions, resolve_relationship_names_to_relations, updatable_fields
Instance Attribute Details
#layout ⇒ Hash (readonly)
Returns The layout of the bait libraries on the plate.
69 |
# File 'app/resources/api/v2/bait_library_layout_resource.rb', line 69 attribute :layout, readonly: true |
#plate ⇒ PlateResource
This relationship is required.
Setting this relationship alongside the plate_uuid
attribute will override the attribute value.
90 |
# File 'app/resources/api/v2/bait_library_layout_resource.rb', line 90 has_one :plate |
#plate_uuid=(value) ⇒ void (writeonly)
Use the plate
relationship instead.
This method returns an undefined value.
This attribute is declared for convenience when the plate is not available to set as a relationship. Setting this attribute alongside the plate
relationship will prefer the relationship value.
48 |
# File 'app/resources/api/v2/bait_library_layout_resource.rb', line 48 attribute :plate_uuid, writeonly: true |
#user ⇒ UserResource
This relationship is required.
Setting this relationship alongside the user_uuid
attribute will override the attribute value.
84 |
# File 'app/resources/api/v2/bait_library_layout_resource.rb', line 84 has_one :user |
#user_uuid=(value) ⇒ void (writeonly)
Use the user
relationship instead.
This method returns an undefined value.
This attribute is declared for convenience when the user is not available to set as a relationship. Setting this attribute alongside the user
relationship will prefer the relationship value.
61 |
# File 'app/resources/api/v2/bait_library_layout_resource.rb', line 61 attribute :user_uuid, writeonly: true |
#uuid ⇒ String (readonly)
This identifier is automatically assigned upon creation and cannot be modified.
Returns The UUID of the bait library layout.
74 |
# File 'app/resources/api/v2/bait_library_layout_resource.rb', line 74 attribute :uuid, readonly: true |