Class: Dor::Workflow::Response::Update
- Inherits:
-
Object
- Object
- Dor::Workflow::Response::Update
- Defined in:
- lib/dor/workflow/response/update.rb
Overview
The response from telling the server to update a workflow step.
Instance Method Summary collapse
-
#initialize(json:) ⇒ Update
constructor
A new instance of Update.
- #next_steps ⇒ Object
Constructor Details
#initialize(json:) ⇒ Update
Returns a new instance of Update.
8 9 10 |
# File 'lib/dor/workflow/response/update.rb', line 8 def initialize(json:) @json = JSON.parse(json) end |
Instance Method Details
#next_steps ⇒ Object
12 13 14 |
# File 'lib/dor/workflow/response/update.rb', line 12 def next_steps @json[:next_steps] end |