sanger/sequencescape

View on GitHub
app/api/io/pooled_plate_creation.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
# frozen_string_literal: true
# Controls API V1 IO for {::PooledPlateCreation}
class Io::PooledPlateCreation < Core::Io::Base
  set_model_for_input(::PooledPlateCreation)
  set_json_root(:pooled_plate_creation)

  # set_eager_loading { |model| model.include_parents.include_child }

  define_attribute_and_json_mapping(
    '
                   user <=> user
                parents <=  parents
          child_purpose <=> child_purpose
                  child  => child
  '
  )
end