Class: SDM::SnapshotResources
- Inherits:
-
Object
- Object
- SDM::SnapshotResources
- Extended by:
- Gem::Deprecate
- Defined in:
- lib/svc.rb
Overview
SnapshotResources exposes the read only methods of the Resources service for historical queries.
Instance Method Summary collapse
-
#get(id, deadline: nil) ⇒ Object
Get reads one Resource by ID.
-
#initialize(resources) ⇒ SnapshotResources
constructor
A new instance of SnapshotResources.
-
#list(filter, *args, deadline: nil) ⇒ Object
List gets a list of Resources matching a given set of criteria.
Constructor Details
#initialize(resources) ⇒ SnapshotResources
Returns a new instance of SnapshotResources.
4980 4981 4982 |
# File 'lib/svc.rb', line 4980 def initialize(resources) @resources = resources end |
Instance Method Details
#get(id, deadline: nil) ⇒ Object
Get reads one Resource by ID.
4985 4986 4987 4988 4989 4990 4991 4992 4993 |
# File 'lib/svc.rb', line 4985 def get( id, deadline: nil ) return @resources.get( id, deadline: deadline, ) end |
#list(filter, *args, deadline: nil) ⇒ Object
List gets a list of Resources matching a given set of criteria.
4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 |
# File 'lib/svc.rb', line 4996 def list( filter, *args, deadline: nil ) return @resources.list( filter, *args, deadline: deadline, ) end |