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.



6112
6113
6114
# File 'lib/svc.rb', line 6112

def initialize(workflows)
  @workflows = workflows
end

Instance Method Details

#get(id, deadline: nil) ⇒ Object

Get reads one workflow by ID.



6117
6118
6119
6120
6121
6122
6123
6124
6125
# File 'lib/svc.rb', line 6117

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

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

Lists existing workflows.



6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
# File 'lib/svc.rb', line 6128

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