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.
6565 6566 6567 |
# File 'lib/svc.rb', line 6565 def initialize(workflows) @workflows = workflows end |
Instance Method Details
#get(id, deadline: nil) ⇒ Object
Get reads one workflow by ID.
6570 6571 6572 6573 6574 6575 6576 6577 6578 |
# File 'lib/svc.rb', line 6570 def get( id, deadline: nil ) return @workflows.get( id, deadline: deadline, ) end |
#list(filter, *args, deadline: nil) ⇒ Object
Lists existing workflows.
6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 |
# File 'lib/svc.rb', line 6581 def list( filter, *args, deadline: nil ) return @workflows.list( filter, *args, deadline: deadline, ) end |