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.



4544
4545
4546
# File 'lib/svc.rb', line 4544

def initialize(workflow_roles)
  @workflow_roles = workflow_roles
end

Instance Method Details

#get(id, deadline: nil) ⇒ Object

Get reads one workflow role by ID.



4549
4550
4551
4552
4553
4554
4555
4556
4557
# File 'lib/svc.rb', line 4549

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

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

Lists existing workflow roles.



4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
# File 'lib/svc.rb', line 4560

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