sanger/sequencescape

View on GitHub
app/api/io/transfer/between_plates.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
# frozen_string_literal: true
class Io::Transfer::BetweenPlates < Core::Io::Base
  set_model_for_input(::Transfer::BetweenPlates)
  set_json_root(:transfer)
  set_eager_loading { |model| model.include_source.include_destination }

  define_attribute_and_json_mapping(
    '
           user <=> user
         source <=> source
    destination <=> destination
      transfers <=> transfers
  '
  )
end