sanger/sequencescape

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

Summary

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

  define_attribute_and_json_mapping(
    '
              event_type <=> event_type
                    user <=> user
                    seed <=> seed
  '
  )
end