Class: V1::Ont::TubeResource
- Inherits:
-
JSONAPI::Resource
- Object
- JSONAPI::Resource
- V1::Ont::TubeResource
- Defined in:
- app/resources/v1/ont/tube_resource.rb
Overview
This documentation does not yet include a detailed description of what this resource represents.
This documentation does not yet include detailed descriptions for relationships, attributes and filters.
This documentation does not yet include any example usage of the API via cURL or similar.
Access this resource via the /v1/ont/tubes/
endpoint.
Provides a JSON:API representation of Tube.
For more information about JSON:API see the JSON:API Specifications or look at the JSONAPI::Resources package for the service implementation of the JSON:API standard.
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.
24 |
# File 'app/resources/v1/ont/tube_resource.rb', line 24 attributes :barcode |
#pools ⇒ Array<Pool>
Returns the pools associated with the tube.
24 |
# File 'app/resources/v1/ont/tube_resource.rb', line 24 attributes :barcode |
#requests ⇒ Array<Request>
Returns the requests associated with the tube.
24 |
# File 'app/resources/v1/ont/tube_resource.rb', line 24 attributes :barcode |
Class Method Details
.records(_options = {}) ⇒ Object
34 35 36 |
# File 'app/resources/v1/ont/tube_resource.rb', line 34 def self.records( = {}) ::Tube.by_pipeline(:ont) end |