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.
6022 6023 6024 |
# File 'lib/svc.rb', line 6022 def initialize(workflows) @workflows = workflows end |
Instance Method Details
#get(id, deadline: nil) ⇒ Object
Get reads one workflow by ID.
6027 6028 6029 6030 6031 6032 6033 6034 6035 |
# File 'lib/svc.rb', line 6027 def get( id, deadline: nil ) return @workflows.get( id, deadline: deadline, ) end |
#list(filter, *args, deadline: nil) ⇒ Object
Lists existing workflows.
6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 |
# File 'lib/svc.rb', line 6038 def list( filter, *args, deadline: nil ) return @workflows.list( filter, *args, deadline: deadline, ) end |