Class: CaTissue::SpecimenPosition
- Inherits:
-
Object
- Object
- CaTissue::SpecimenPosition
- Includes:
- Resource
- Defined in:
- lib/catissue/domain/specimen_position.rb
Instance Method Summary collapse
-
#saver_proxy ⇒ Object
Returns a TransferEventParameters which serves as a proxy for saving this SpecimenPosition.
Methods included from Resource
#database, included, #tolerant_match?
Methods included from Annotatable
#annotation_proxy, #create_proxy, #method_missing
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class CaTissue::Annotatable
Instance Method Details
#saver_proxy ⇒ Object
Returns a TransferEventParameters which serves as a proxy for saving this SpecimenPosition.
caTissue alert - caTissue does not allow saving a SpecimenPosition directly in the database. Creating a TransferEventParameters sets the SpecimenPosition as a side-effect. Therefore, SpecimenPosition save is accomplished by creating a proxy TransferEventParameters instead.
26 27 28 29 30 31 32 33 34 |
# File 'lib/catissue/domain/specimen_position.rb', line 26 def saver_proxy xfr = CaTissue::TransferEventParameters.new(:specimen => specimen, :to => location) if snapshot and changed? then xfr.from_storage_container = snapshot[:storage_container] xfr.from_position_dimension_one = snapshot[:position_dimension_one] xfr.from_position_dimension_two = snapshot[:position_dimension_two] end xfr end |