Class: SDM::SnapshotWorkflowApprovers

Inherits:
Object
  • Object
show all
Extended by:
Gem::Deprecate
Defined in:
lib/svc.rb

Overview

SnapshotWorkflowApprovers exposes the read only methods of the WorkflowApprovers service for historical queries.

Instance Method Summary collapse

Constructor Details

#initialize(workflow_approvers) ⇒ SnapshotWorkflowApprovers

Returns a new instance of SnapshotWorkflowApprovers.



5385
5386
5387
# File 'lib/svc.rb', line 5385

def initialize(workflow_approvers)
  @workflow_approvers = workflow_approvers
end

Instance Method Details

#get(id, deadline: nil) ⇒ Object

Get reads one workflow approver by ID.



5390
5391
5392
5393
5394
5395
5396
5397
5398
# File 'lib/svc.rb', line 5390

def get(
  id,
  deadline: nil
)
  return @workflow_approvers.get(
           id,
           deadline: deadline,
         )
end

#list(filter, *args, deadline: nil) ⇒ Object

Lists existing workflow approvers.



5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
# File 'lib/svc.rb', line 5401

def list(
  filter,
  *args,
  deadline: nil
)
  return @workflow_approvers.list(
           filter,
                        *args,
                        deadline: deadline,
         )
end