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.



5992
5993
5994
# File 'lib/svc.rb', line 5992

def initialize(workflow_approvers)
  @workflow_approvers = workflow_approvers
end

Instance Method Details

#get(id, deadline: nil) ⇒ Object

Get reads one workflow approver by ID.



5997
5998
5999
6000
6001
6002
6003
6004
6005
# File 'lib/svc.rb', line 5997

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

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

Lists existing workflow approvers.



6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
# File 'lib/svc.rb', line 6008

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