Class: Printer
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Printer
- Defined in:
- app/models/printer.rb
Overview
A device that can print labels based on the labware type
Instance Method Summary collapse
Instance Method Details
#active? ⇒ Boolean
13 14 15 |
# File 'app/models/printer.rb', line 13 def active? deactivated_at.nil? end |
#deactivate! ⇒ Object
17 18 19 |
# File 'app/models/printer.rb', line 17 def deactivate! update!(deactivated_at: Time.current) end |