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.
8840 8841 8842 |
# File 'lib/svc.rb', line 8840 def initialize(workflows) @workflows = workflows end |
Instance Method Details
#get(id, deadline: nil) ⇒ Object
Get reads one workflow by ID.
8845 8846 8847 8848 8849 8850 8851 8852 8853 |
# File 'lib/svc.rb', line 8845 def get( id, deadline: nil ) return @workflows.get( id, deadline: deadline, ) end |
#list(filter, *args, deadline: nil) ⇒ Object
Lists existing workflows.
8856 8857 8858 8859 8860 8861 8862 8863 8864 8865 8866 |
# File 'lib/svc.rb', line 8856 def list( filter, *args, deadline: nil ) return @workflows.list( filter, *args, deadline: deadline, ) end |