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
Returns a new instance of SnapshotAccounts.
1094 1095 1096 |
# File 'lib/svc.rb', line 1094 def initialize(accounts) @accounts = accounts end |
Instance Method Details
#get(id, deadline: nil) ⇒ Object
Get reads one Account by ID.
1099 1100 1101 1102 1103 1104 1105 1106 1107 |
# File 'lib/svc.rb', line 1099 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.
1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 |
# File 'lib/svc.rb', line 1110 def list( filter, *args, deadline: nil ) return @accounts.list( filter, *args, deadline: deadline, ) end |