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.



7460
7461
7462
# File 'lib/svc.rb', line 7460

def initialize(workflow_approvers)
  @workflow_approvers = workflow_approvers
end

Instance Method Details

#get(id, deadline: nil) ⇒ Object

Get reads one workflow approver by ID.



7465
7466
7467
7468
7469
7470
7471
7472
7473
# File 'lib/svc.rb', line 7465

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

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

Lists existing workflow approvers.



7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
# File 'lib/svc.rb', line 7476

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