Class: Api::V2::BarcodePrinterResource
- Inherits:
-
BaseResource
- Object
- JSONAPI::Resource
- BaseResource
- Api::V2::BarcodePrinterResource
- Defined in:
- app/resources/api/v2/barcode_printer_resource.rb
Overview
This resource is immutable: its endpoint will not accept POST
, PATCH
, or DELETE
requests.
Access this resource via the /api/v2/barcode_printers/
endpoint.
Provides a JSON:API representation of BarcodePrinter.
This resource represents a barcode printer and its capabilities. It allows retrieving information about registered barcode printers, including their names, types, and supported services.
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
-
#barcode_type ⇒ String
readonly
Retrieves the barcode type from the associated barcode printer type.
-
#name ⇒ String
readonly
The name of the barcode printer.
-
#print_service ⇒ String
readonly
The service this printer can be instructed to print from.
-
#uuid ⇒ String
readonly
The UUID of the barcode printer.
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
#barcode_type ⇒ String (readonly)
This attribute is read-only;
Retrieves the barcode type from the associated barcode printer type.
48 |
# File 'app/resources/api/v2/barcode_printer_resource.rb', line 48 attribute :barcode_type, readonly: true |
#name ⇒ String (readonly)
Returns The name of the barcode printer.
35 |
# File 'app/resources/api/v2/barcode_printer_resource.rb', line 35 attribute :name, readonly: true |
#print_service ⇒ String (readonly)
Returns The service this printer can be instructed to print from. e.g “PMB”.
44 |
# File 'app/resources/api/v2/barcode_printer_resource.rb', line 44 attribute :print_service, readonly: true |
#uuid ⇒ String (readonly)
This identifier is automatically assigned upon creation and cannot be modified.
Returns The UUID of the barcode printer.
40 |
# File 'app/resources/api/v2/barcode_printer_resource.rb', line 40 attribute :uuid, readonly: true |