Class: V1::PrinterResource
- Inherits:
-
JSONAPI::Resource
- Object
- JSONAPI::Resource
- V1::PrinterResource
- Defined in:
- app/resources/v1/printer_resource.rb
Overview
Access this resource via the /v1/printer_types endpoint.
Provides a JSON:API representation of Printer
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.
Filters: * name * labware_type * active
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.
40 |
# File 'app/resources/v1/printer_resource.rb', line 40 attributes :name, :labware_type, :active?, :created_at, :updated_at, :deactivated_at |
#created_at ⇒ String
Returns the timestamp when the printer was created.
40 |
# File 'app/resources/v1/printer_resource.rb', line 40 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.
40 |
# File 'app/resources/v1/printer_resource.rb', line 40 attributes :name, :labware_type, :active?, :created_at, :updated_at, :deactivated_at |
#labware_type ⇒ String
Returns the type of labware the printer handles.
40 |
# File 'app/resources/v1/printer_resource.rb', line 40 attributes :name, :labware_type, :active?, :created_at, :updated_at, :deactivated_at |
#name ⇒ String
Returns the name of the printer.
40 |
# File 'app/resources/v1/printer_resource.rb', line 40 attributes :name, :labware_type, :active?, :created_at, :updated_at, :deactivated_at |
#updated_at ⇒ String
Returns the timestamp when the printer was last updated.
40 |
# File 'app/resources/v1/printer_resource.rb', line 40 attributes :name, :labware_type, :active?, :created_at, :updated_at, :deactivated_at |