Class: SDM::SnapshotWorkflows
- Inherits:
-
Object
- Object
- SDM::SnapshotWorkflows
- 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
-
#get(id, deadline: nil) ⇒ Object
Get reads one workflow by ID.
-
#initialize(workflows) ⇒ SnapshotWorkflows
constructor
A new instance of SnapshotWorkflows.
-
#list(filter, *args, deadline: nil) ⇒ Object
Lists existing workflows.
Constructor Details
#initialize(workflows) ⇒ SnapshotWorkflows
Returns a new instance of SnapshotWorkflows.
6621 6622 6623 |
# File 'lib/svc.rb', line 6621 def initialize(workflows) @workflows = workflows end |
Instance Method Details
#get(id, deadline: nil) ⇒ Object
Get reads one workflow by ID.
6626 6627 6628 6629 6630 6631 6632 6633 6634 |
# File 'lib/svc.rb', line 6626 def get( id, deadline: nil ) return @workflows.get( id, deadline: deadline, ) end |
#list(filter, *args, deadline: nil) ⇒ Object
Lists existing workflows.
6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 |
# File 'lib/svc.rb', line 6637 def list( filter, *args, deadline: nil ) return @workflows.list( filter, *args, deadline: deadline, ) end |