Class: SDM::SnapshotWorkflows

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

Overview

SnapshotWorkflows exposes the read only methods of the Workflows service for historical queries.

Instance Method Summary collapse

Constructor Details

#initialize(workflows) ⇒ SnapshotWorkflows

Returns a new instance of SnapshotWorkflows.



6377
6378
6379
# File 'lib/svc.rb', line 6377

def initialize(workflows)
  @workflows = workflows
end

Instance Method Details

#get(id, deadline: nil) ⇒ Object

Get reads one workflow by ID.



6382
6383
6384
6385
6386
6387
6388
6389
6390
# File 'lib/svc.rb', line 6382

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

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

Lists existing workflows.



6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
# File 'lib/svc.rb', line 6393

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