Class: Hexagonal::Runners::DeleteRunner
- Inherits:
-
Object
- Object
- Hexagonal::Runners::DeleteRunner
- Defined in:
- lib/hexagonal/runners/delete_runner.rb
Instance Attribute Summary collapse
-
#policy ⇒ Object
writeonly
Sets the attribute policy.
-
#repository ⇒ Object
writeonly
Sets the attribute repository.
Instance Method Summary collapse
Instance Attribute Details
#policy=(value) ⇒ Object (writeonly)
Sets the attribute policy
8 9 10 |
# File 'lib/hexagonal/runners/delete_runner.rb', line 8 def policy=(value) @policy = value end |
#repository=(value) ⇒ Object (writeonly)
Sets the attribute repository
8 9 10 |
# File 'lib/hexagonal/runners/delete_runner.rb', line 8 def repository=(value) @repository = value end |
Instance Method Details
#run ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/hexagonal/runners/delete_runner.rb', line 10 def run delete! deleted_successfully target rescue Hexagonal::Errors::UnauthorizedException => ex (ex) end |