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.



9091
9092
9093
# File 'lib/svc.rb', line 9091

def initialize(workflows)
  @workflows = workflows
end

Instance Method Details

#get(id, deadline: nil) ⇒ Object

Get reads one workflow by ID.



9096
9097
9098
9099
9100
9101
9102
9103
9104
# File 'lib/svc.rb', line 9096

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

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

Lists existing workflows.



9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
# File 'lib/svc.rb', line 9107

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