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.



6633
6634
6635
# File 'lib/svc.rb', line 6633

def initialize(workflows)
  @workflows = workflows
end

Instance Method Details

#get(id, deadline: nil) ⇒ Object

Get reads one workflow by ID.



6638
6639
6640
6641
6642
6643
6644
6645
6646
# File 'lib/svc.rb', line 6638

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

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

Lists existing workflows.



6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
# File 'lib/svc.rb', line 6649

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