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.



6659
6660
6661
# File 'lib/svc.rb', line 6659

def initialize(workflow_approvers)
  @workflow_approvers = workflow_approvers
end

Instance Method Details

#get(id, deadline: nil) ⇒ Object

Get reads one workflow approver by ID.



6664
6665
6666
6667
6668
6669
6670
6671
6672
# File 'lib/svc.rb', line 6664

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

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

Lists existing workflow approvers.



6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
# File 'lib/svc.rb', line 6675

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