Class: SDM::SnapshotWorkflowRoles

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

Overview

SnapshotWorkflowRoles exposes the read only methods of the WorkflowRoles service for historical queries.

Instance Method Summary collapse

Constructor Details

#initialize(workflow_roles) ⇒ SnapshotWorkflowRoles

Returns a new instance of SnapshotWorkflowRoles.



6897
6898
6899
# File 'lib/svc.rb', line 6897

def initialize(workflow_roles)
  @workflow_roles = workflow_roles
end

Instance Method Details

#get(id, deadline: nil) ⇒ Object

Get reads one workflow role by ID.



6902
6903
6904
6905
6906
6907
6908
6909
6910
# File 'lib/svc.rb', line 6902

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

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

Lists existing workflow roles.



6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
# File 'lib/svc.rb', line 6913

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