Class: Pragma::Operation::Create
- Inherits:
-
Base
- Object
- Base
- Pragma::Operation::Create
- Defined in:
- lib/pragma/operation/create.rb
Overview
Creates a new record and responds with the decorated record.
Instance Method Summary collapse
Instance Method Details
#respond!(options) ⇒ Object
18 19 20 21 22 |
# File 'lib/pragma/operation/create.rb', line 18 def respond!() ['result.response'] = Response::Created.new( entity: ['result.decorator.instance'] ) end |