Class: SdrClient::RedesignedClient::CLI::Update
- Inherits:
-
Object
- Object
- SdrClient::RedesignedClient::CLI::Update
- Defined in:
- lib/sdr_client/redesigned_client/cli/update.rb
Overview
Update a resource given command-line options
Class Method Summary collapse
-
.run(druid, **options) ⇒ String
Job id for the background job result.
Instance Method Summary collapse
-
#initialize(druid, **options) ⇒ Update
constructor
A new instance of Update.
-
#run ⇒ String
Job id for the background job result.
Constructor Details
#initialize(druid, **options) ⇒ Update
Returns a new instance of Update.
13 14 15 16 |
# File 'lib/sdr_client/redesigned_client/cli/update.rb', line 13 def initialize(druid, **) @druid = druid @options = end |
Class Method Details
.run(druid, **options) ⇒ String
Returns job id for the background job result.
9 10 11 |
# File 'lib/sdr_client/redesigned_client/cli/update.rb', line 9 def self.run(druid, **) new(druid, **).run end |
Instance Method Details
#run ⇒ String
Returns job id for the background job result.
19 20 21 |
# File 'lib/sdr_client/redesigned_client/cli/update.rb', line 19 def run client.update_model(model: updated_cocina_object) end |