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.



6357
6358
6359
# File 'lib/svc.rb', line 6357

def initialize(workflow_roles)
  @workflow_roles = workflow_roles
end

Instance Method Details

#get(id, deadline: nil) ⇒ Object

Get reads one workflow role by ID.



6362
6363
6364
6365
6366
6367
6368
6369
6370
# File 'lib/svc.rb', line 6362

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

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

Lists existing workflow roles.



6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
# File 'lib/svc.rb', line 6373

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