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

Inherits:
Object
  • Object
show all
Defined in:
lib/dor/models/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.



10
11
12
# File 'lib/dor/models/response/update.rb', line 10

def initialize(json:)
  @json = JSON.parse(json)
end

Instance Method Details

#next_stepsObject



14
15
16
# File 'lib/dor/models/response/update.rb', line 14

def next_steps
  @json[:next_steps]
end