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.



6691
6692
6693
# File 'lib/svc.rb', line 6691

def initialize(workflow_approvers)
  @workflow_approvers = workflow_approvers
end

Instance Method Details

#get(id, deadline: nil) ⇒ Object

Get reads one workflow approver by ID.



6696
6697
6698
6699
6700
6701
6702
6703
6704
# File 'lib/svc.rb', line 6696

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

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

Lists existing workflow approvers.



6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
# File 'lib/svc.rb', line 6707

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