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.



5572
5573
5574
# File 'lib/svc.rb', line 5572

def initialize(workflows)
  @workflows = workflows
end

Instance Method Details

#get(id, deadline: nil) ⇒ Object

Get reads one workflow by ID.



5577
5578
5579
5580
5581
5582
5583
5584
5585
# File 'lib/svc.rb', line 5577

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

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

Lists existing workflows.



5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
# File 'lib/svc.rb', line 5588

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