Class: Io::Order

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

Constant Summary collapse

REQUEST_OPTIONS_FIELDS =
Hash[{
  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'
}.map { |k, v| ["request_options.#{k}".to_sym, "request_options.#{v}"] }]

Class Method Summary collapse

Class Method Details

.json_field_for(attribute) ⇒ Object


10
11
12
# File 'app/api/io/order.rb', line 10

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