Class: V1::Ont::TubeResource
- Inherits:
-
JSONAPI::Resource
- Object
- JSONAPI::Resource
- V1::Ont::TubeResource
- Defined in:
- app/resources/v1/ont/tube_resource.rb
Overview
Note:
Access this resource via the /v1/ont/tubes/ endpoint.
Instance Attribute Summary collapse
-
#barcode ⇒ String
The barcode of the tube.
-
#pools ⇒ Array<Pool>
The pools associated with the tube.
-
#requests ⇒ Array<Request>
The requests associated with the tube.
Class Method Summary collapse
Instance Attribute Details
#barcode ⇒ String
Returns the barcode of the tube.
29 |
# File 'app/resources/v1/ont/tube_resource.rb', line 29 attributes :barcode |
#pools ⇒ Array<Pool>
Returns the pools associated with the tube.
29 |
# File 'app/resources/v1/ont/tube_resource.rb', line 29 attributes :barcode |
#requests ⇒ Array<Request>
Returns the requests associated with the tube.
29 |
# File 'app/resources/v1/ont/tube_resource.rb', line 29 attributes :barcode |
Class Method Details
.records(_options = {}) ⇒ Object
39 40 41 |
# File 'app/resources/v1/ont/tube_resource.rb', line 39 def self.records( = {}) ::Tube.by_pipeline(:ont) end |