sanger/sequencescape

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

Summary

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

  define_attribute_and_json_mapping(
    '
                   name  => name
              transfers  => transfers
  '
  )
end