Class: EchoCraft::ServiceObjects::Destroy
- Inherits:
-
EchoCraft::ServiceObject
- Object
- Response
- EchoCraft::ServiceObject
- EchoCraft::ServiceObjects::Destroy
- Defined in:
- lib/echo_craft/service_objects/destroy.rb
Overview
Basic Response to Destroy a Record on ServiceObject
Instance Attribute Summary
Attributes inherited from EchoCraft::ServiceObject
Attributes inherited from Response
Instance Method Summary collapse
- #destroyed ⇒ Object
-
#initialize(record) ⇒ Destroy
constructor
A new instance of Destroy.
Methods inherited from EchoCraft::ServiceObject
#set_service_successful, #unprocessabled
Methods inherited from Response
Constructor Details
#initialize(record) ⇒ Destroy
Returns a new instance of Destroy.
8 9 10 11 |
# File 'lib/echo_craft/service_objects/destroy.rb', line 8 def initialize(record) super() @record = record end |
Instance Method Details
#destroyed ⇒ Object
13 14 15 16 |
# File 'lib/echo_craft/service_objects/destroy.rb', line 13 def destroyed change_status(:ok) set_service_successful end |