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'
}.to_h { |k, v| [:"request_options.#{k}", "request_options.#{v}"] }

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