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.
3184 3185 3186 |
# File 'lib/svc.rb', line 3184 def initialize(resources) @resources = resources end |
Instance Method Details
#get(id, deadline: nil) ⇒ Object
Get reads one Resource by ID.
3189 3190 3191 3192 3193 3194 3195 3196 3197 |
# File 'lib/svc.rb', line 3189 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.
3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 |
# File 'lib/svc.rb', line 3200 def list( filter, *args, deadline: nil ) return @resources.list( filter, *args, deadline: deadline, ) end |