Class: Presenters::QcablePresenter
- Inherits:
-
Object
- Object
- Presenters::QcablePresenter
- Defined in:
- app/models/presenters/qcable_presenter.rb
Overview
Used for tag plates / tag 2 tubes. Rendered with default to_json behaviour.
Instance Method Summary collapse
-
#initialize(qcable) ⇒ QcablePresenter
constructor
rubocop:todo Metrics/AbcSize.
Constructor Details
#initialize(qcable) ⇒ QcablePresenter
rubocop:todo Metrics/AbcSize
6 7 8 9 10 11 12 13 14 15 |
# File 'app/models/presenters/qcable_presenter.rb', line 6 def initialize(qcable) # rubocop:todo Metrics/AbcSize @uuid = qcable.uuid @tag_layout = qcable.lot.template_name @asset_uuid = qcable.asset.uuid @state = qcable.state @type = qcable.lot.lot_type_name @qcable_type = qcable.lot.lot_type.qcable_name @template_uuid = qcable.lot.template.uuid @lot_number = qcable.lot.lot_number end |