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.



854
855
856
# File 'lib/svc.rb', line 854

def initialize(accounts)
  @accounts = accounts
end

Instance Method Details

#get(id, deadline: nil) ⇒ Object

Get reads one Account by ID.



859
860
861
862
863
864
865
866
867
# File 'lib/svc.rb', line 859

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.



870
871
872
873
874
875
876
877
878
879
880
# File 'lib/svc.rb', line 870

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