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.



5844
5845
5846
# File 'lib/svc.rb', line 5844

def initialize(workflow_roles)
  @workflow_roles = workflow_roles
end

Instance Method Details

#get(id, deadline: nil) ⇒ Object

Get reads one workflow role by ID.



5849
5850
5851
5852
5853
5854
5855
5856
5857
# File 'lib/svc.rb', line 5849

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

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

Lists existing workflow roles.



5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
# File 'lib/svc.rb', line 5860

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