Exception: LabwareCreators::ResourceInvalid
- Inherits:
-
StandardError
- Object
- StandardError
- LabwareCreators::ResourceInvalid
- Defined in:
- app/models/labware_creators.rb
Overview
Raised on validation errors. We should return false instead if these are user error.
Instance Attribute Summary collapse
-
#resource ⇒ Object
readonly
Returns the value of attribute resource.
Instance Method Summary collapse
-
#initialize(resource) ⇒ ResourceInvalid
constructor
A new instance of ResourceInvalid.
Constructor Details
#initialize(resource) ⇒ ResourceInvalid
Returns a new instance of ResourceInvalid.
7 8 9 10 |
# File 'app/models/labware_creators.rb', line 7 def initialize(resource) super(resource.errors..join('; ')) @resource = resource end |
Instance Attribute Details
#resource ⇒ Object (readonly)
Returns the value of attribute resource.
12 13 14 |
# File 'app/models/labware_creators.rb', line 12 def resource @resource end |