Class: SDM::SnapshotAccounts

Inherits:
Object
  • Object
show all
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

Constructor Details

#initialize(accounts) ⇒ SnapshotAccounts

Returns a new instance of SnapshotAccounts.



1090
1091
1092
# File 'lib/svc.rb', line 1090

def initialize(accounts)
  @accounts = accounts
end

Instance Method Details

#get(id, deadline: nil) ⇒ Object

Get reads one Account by ID.



1095
1096
1097
1098
1099
1100
1101
1102
1103
# File 'lib/svc.rb', line 1095

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.



1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
# File 'lib/svc.rb', line 1106

def list(
  filter,
  *args,
  deadline: nil
)
  return @accounts.list(
           filter,
                        *args,
                        deadline: deadline,
         )
end