Class: Hexagonal::Runners::CreateRunner
- Inherits:
-
Object
- Object
- Hexagonal::Runners::CreateRunner
- Defined in:
- lib/hexagonal/runners/create_runner.rb
Instance Attribute Summary collapse
-
#form ⇒ Object
writeonly
Sets the attribute form.
Instance Method Summary collapse
Instance Attribute Details
#form=(value) ⇒ Object (writeonly)
Sets the attribute form
9 10 11 |
# File 'lib/hexagonal/runners/create_runner.rb', line 9 def form=(value) @form = value end |
Instance Method Details
#run ⇒ Object
11 12 13 14 15 16 |
# File 'lib/hexagonal/runners/create_runner.rb', line 11 def run validate! create! rescue Hexagonal::Errors::RecordInvalidException => ex creation_failed(ex) end |