Class: SDM::SnapshotAccounts
- Inherits:
-
Object
- Object
- SDM::SnapshotAccounts
- Extended by:
- Gem::Deprecate
- Defined in:
- lib/svc.rb
Overview
SnapshotAccounts exposes the read only methods of the Accounts service for historical queries.
Instance Method Summary collapse
-
#get(id, deadline: nil) ⇒ Object
Get reads one Account by ID.
-
#initialize(accounts) ⇒ SnapshotAccounts
constructor
A new instance of SnapshotAccounts.
-
#list(filter, *args, deadline: nil) ⇒ Object
List gets a list of Accounts matching a given set of criteria.
Constructor Details
#initialize(accounts) ⇒ SnapshotAccounts
1145 1146 1147 |
# File 'lib/svc.rb', line 1145 def initialize(accounts) @accounts = accounts end |
Instance Method Details
#get(id, deadline: nil) ⇒ Object
Get reads one Account by ID.
1150 1151 1152 1153 1154 1155 1156 1157 1158 |
# File 'lib/svc.rb', line 1150 def get( id, deadline: nil ) return @accounts.get( id, deadline: deadline, ) end |
#list(filter, *args, deadline: nil) ⇒ Object
List gets a list of Accounts matching a given set of criteria.
1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 |
# File 'lib/svc.rb', line 1161 def list( filter, *args, deadline: nil ) return @accounts.list( filter, *args, deadline: deadline, ) end |