Class: Dor::Workflow::Response::Update

Inherits:
Object
  • Object
show all
Defined in:
lib/dor/workflow/response/update.rb

Overview

The response from telling the server to update a workflow step.

Instance Method Summary collapse

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_stepsObject



12
13
14
# File 'lib/dor/workflow/response/update.rb', line 12

def next_steps
  @json[:next_steps]
end