Class: V1::PrinterResource
- Inherits:
-
JSONAPI::Resource
- Object
- JSONAPI::Resource
- V1::PrinterResource
- Defined in:
- app/resources/v1/printer_resource.rb
Overview
This documentation does not yet include a detailed description of what this resource represents.
This documentation does not yet include detailed descriptions for relationships, attributes and filters.
This documentation does not yet include any example usage of the API via cURL or similar.
Access this resource via the /v1/printer_types
endpoint.
Provides a JSON:API representation of Printer and exposes valid library type options for use by the UI.
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
-
#active? ⇒ Boolean
The active status of the printer.
-
#created_at ⇒ String
The timestamp when the printer was created.
-
#deactivated_at ⇒ DateTime?
The timestamp when printer was deactivated, or nil if it is active.
-
#labware_type ⇒ String
The type of labware the printer handles.
-
#name ⇒ String
The name of the printer.
-
#updated_at ⇒ String
The timestamp when the printer was last updated.
Instance Attribute Details
#active? ⇒ Boolean
Returns the active status of the printer.
31 |
# File 'app/resources/v1/printer_resource.rb', line 31 attributes :name, :labware_type, :active?, :created_at, :updated_at, :deactivated_at |
#created_at ⇒ String
Returns the timestamp when the printer was created.
31 |
# File 'app/resources/v1/printer_resource.rb', line 31 attributes :name, :labware_type, :active?, :created_at, :updated_at, :deactivated_at |
#deactivated_at ⇒ DateTime?
Returns the timestamp when printer was deactivated, or nil if it is active.
31 |
# File 'app/resources/v1/printer_resource.rb', line 31 attributes :name, :labware_type, :active?, :created_at, :updated_at, :deactivated_at |
#labware_type ⇒ String
Returns the type of labware the printer handles.
31 |
# File 'app/resources/v1/printer_resource.rb', line 31 attributes :name, :labware_type, :active?, :created_at, :updated_at, :deactivated_at |
#name ⇒ String
Returns the name of the printer.
31 |
# File 'app/resources/v1/printer_resource.rb', line 31 attributes :name, :labware_type, :active?, :created_at, :updated_at, :deactivated_at |
#updated_at ⇒ String
Returns the timestamp when the printer was last updated.
31 |
# File 'app/resources/v1/printer_resource.rb', line 31 attributes :name, :labware_type, :active?, :created_at, :updated_at, :deactivated_at |