Class: V1::Ont::InstrumentResource

Inherits:
JSONAPI::Resource
  • Object
show all
Defined in:
app/resources/v1/ont/instrument_resource.rb

Overview

Note:

Access this resource via the /v1/ont/instruments/ endpoint.

Provides a JSON:API representation of Ont::Instrument.

Examples:

curl -X GET http://localhost:3100/v1/ont/instruments
curl -X GET "http://localhost:3100/v1/ont/instruments/1"

Instance Attribute Summary collapse

Instance Attribute Details

#instrument_typeString

Returns the type of the instrument.

Returns:

  • (String)

    the type of the instrument



22
# File 'app/resources/v1/ont/instrument_resource.rb', line 22

attributes :name, :instrument_type, :max_number_of_flowcells

#max_number_of_flowcellsInteger

Returns the maximum number of flowcells the instrument can handle.

Returns:

  • (Integer)

    the maximum number of flowcells the instrument can handle



22
# File 'app/resources/v1/ont/instrument_resource.rb', line 22

attributes :name, :instrument_type, :max_number_of_flowcells

#nameString

Returns the name of the instrument.

Returns:

  • (String)

    the name of the instrument



22
# File 'app/resources/v1/ont/instrument_resource.rb', line 22

attributes :name, :instrument_type, :max_number_of_flowcells