Class: StateChange

Inherits:
ApplicationRecord show all
Includes:
Asset::Ownership::ChangesOwner, Uuid::Uuidable
Defined in:
app/models/state_change.rb

Overview

Performs a change of state on a Labware.

– This code assumes that there is no statemachine on the requests. Whilst this is not true it will be in the future and we are safe to assume that, in the case of Pulldown, this is ok. The state of a plate, or the MX library tube, in Pulldown is considered to be the state of the TransferRequests leading into it. The state machine for the asset is defined within the client application, hence the statemachine on the requests will be removed from the core of sequencescape at some point. ++

Instance Attribute Summary collapse

Method Summary

Methods included from Asset::Ownership::ChangesOwner

included

Methods included from Uuid::Uuidable

included, #unsaved_uuid!, #uuid

Methods inherited from ApplicationRecord

alias_association, convert_labware_to_receptacle_for, find_by_id_or_name, find_by_id_or_name!

Methods included from Squishify

extended

Instance Attribute Details

#customer_accepts_responsibilityObject

Returns the value of attribute customer_accepts_responsibility.



16
17
18
# File 'app/models/state_change.rb', line 16

def customer_accepts_responsibility
  @customer_accepts_responsibility
end