Class: SDM::SnapshotNodes
- Inherits:
-
Object
- Object
- SDM::SnapshotNodes
- Extended by:
- Gem::Deprecate
- Defined in:
- lib/svc.rb
Overview
SnapshotNodes exposes the read only methods of the Nodes service for historical queries.
Instance Method Summary collapse
-
#get(id, deadline: nil) ⇒ Object
Get reads one Node by ID.
-
#initialize(nodes) ⇒ SnapshotNodes
constructor
A new instance of SnapshotNodes.
-
#list(filter, *args, deadline: nil) ⇒ Object
List gets a list of Nodes matching a given set of criteria.
Constructor Details
#initialize(nodes) ⇒ SnapshotNodes
Returns a new instance of SnapshotNodes.
2891 2892 2893 |
# File 'lib/svc.rb', line 2891 def initialize(nodes) @nodes = nodes end |
Instance Method Details
#get(id, deadline: nil) ⇒ Object
Get reads one Node by ID.
2896 2897 2898 2899 2900 2901 2902 2903 2904 |
# File 'lib/svc.rb', line 2896 def get( id, deadline: nil ) return @nodes.get( id, deadline: deadline, ) end |
#list(filter, *args, deadline: nil) ⇒ Object
List gets a list of Nodes matching a given set of criteria.
2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 |
# File 'lib/svc.rb', line 2907 def list( filter, *args, deadline: nil ) return @nodes.list( filter, *args, deadline: deadline, ) end |