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.



910
911
912
# File 'lib/svc.rb', line 910

def initialize(accounts)
  @accounts = accounts
end

Instance Method Details

#get(id, deadline: nil) ⇒ Object

Get reads one Account by ID.



915
916
917
918
919
920
921
922
923
# File 'lib/svc.rb', line 915

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.



926
927
928
929
930
931
932
933
934
935
936
# File 'lib/svc.rb', line 926

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