Class: Io::Order

Inherits:
Core::Io::Base
  • Object
show all
Defined in:
app/api/io/order.rb

Overview

Controls API V1 IO for Order

Constant Summary collapse

REQUEST_OPTIONS_FIELDS =
{
  read_length: 'read_length',
  library_type: 'library_type',
  fragment_size_required_from: 'fragment_size_required.from',
  fragment_size_required_to: 'fragment_size_required.to',
  pcr_cycles: 'pcr_cycles',
  primer_panel_name: 'primer_panel_name'
}.map { |k, v| ["request_options.#{k}".to_sym, "request_options.#{v}"] }.to_h

Class Method Summary collapse

Class Method Details

.json_field_for(attribute) ⇒ Object


14
15
16
# File 'app/api/io/order.rb', line 14

def self.json_field_for(attribute)
  REQUEST_OPTIONS_FIELDS[attribute.to_sym] || super
end