Class: Request::None
- Inherits:
-
Object
- Object
- Request::None
- Defined in:
- app/models/request/none.rb
Overview
Null object for situations where you wish to explicitly indicate you have no request. (In contrast to nil, which could too easily result from a bug) Added to allow Pooling to indicate there should ne no outer request, without risking incorrect behaviour if we pass in nil unintentionally.
Instance Method Summary collapse
-
#aliquot_attributes ⇒ Object
Normal requests can inject attributes into aliquots created by transfer requests associated with the request.
- #id ⇒ Object
- #submission_id ⇒ Object
Instance Method Details
#aliquot_attributes ⇒ Object
Normal requests can inject attributes into aliquots created by transfer requests associated with the request. In the case of Request::None we return an empty hash, which ensures that no additional attributes are injected
21 22 23 |
# File 'app/models/request/none.rb', line 21 def aliquot_attributes {} end |
#id ⇒ Object
13 14 15 |
# File 'app/models/request/none.rb', line 13 def id nil end |
#submission_id ⇒ Object
9 10 11 |
# File 'app/models/request/none.rb', line 9 def submission_id nil end |