Class: V1::ReceptionResource
- Inherits:
-
JSONAPI::Resource
- Object
- JSONAPI::Resource
- V1::ReceptionResource
- Defined in:
- app/resources/v1/reception_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/receptions
endpoint.
Provides a JSON:API representation of Reception and handles the import of resources into traction
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
-
#labware ⇒ Array<Hash>
The labware associated with the reception.
-
#plates_attributes ⇒ Array<Hash>
readonly
The attributes of the plates.
-
#pool_attributes ⇒ Hash
readonly
The attributes of the pool.
-
#source ⇒ String
The source of the reception.
-
#tubes_attributes ⇒ Array<Hash>
readonly
The attributes of the tubes.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#labware ⇒ Array<Hash>
Returns the labware associated with the reception.
27 |
# File 'app/resources/v1/reception_resource.rb', line 27 attributes :source, :labware, :plates_attributes, :tubes_attributes, :pool_attributes |
#plates_attributes ⇒ Array<Hash>
Returns the attributes of the plates.
27 |
# File 'app/resources/v1/reception_resource.rb', line 27 attributes :source, :labware, :plates_attributes, :tubes_attributes, :pool_attributes |
#pool_attributes ⇒ Hash
Returns the attributes of the pool.
27 |
# File 'app/resources/v1/reception_resource.rb', line 27 attributes :source, :labware, :plates_attributes, :tubes_attributes, :pool_attributes |
#source ⇒ String
Returns the source of the reception.
27 |
# File 'app/resources/v1/reception_resource.rb', line 27 attributes :source, :labware, :plates_attributes, :tubes_attributes, :pool_attributes |
#tubes_attributes ⇒ Array<Hash>
Returns the attributes of the tubes.
27 |
# File 'app/resources/v1/reception_resource.rb', line 27 attributes :source, :labware, :plates_attributes, :tubes_attributes, :pool_attributes |
Class Method Details
.creatable_fields(context) ⇒ Object
35 36 37 |
# File 'app/resources/v1/reception_resource.rb', line 35 def self.creatable_fields(context) super - [:labware] end |
Instance Method Details
#fetchable_fields ⇒ Object
31 32 33 |
# File 'app/resources/v1/reception_resource.rb', line 31 def fetchable_fields %i[source labware] end |