Exception: Served::Resource::ResourceInvalid
- Inherits:
-
Error
- Object
- StandardError
- Base::ServiceError
- Error
- Served::Resource::ResourceInvalid
- Defined in:
- lib/served/resource/resource_invalid.rb
Instance Method Summary collapse
-
#initialize(resource) ⇒ ResourceInvalid
constructor
A new instance of ResourceInvalid.
Constructor Details
#initialize(resource) ⇒ ResourceInvalid
Returns a new instance of ResourceInvalid.
4 5 6 |
# File 'lib/served/resource/resource_invalid.rb', line 4 def initialize(resource) super "[#{resource.errors..join(', ')}]" end |