Module: Itrigga::AdminApiClient::Proxies::Admin

Included in:
Itrigga::AdminApiClient
Defined in:
lib/itrigga/admin_api_client/proxies/admin.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



6
7
8
# File 'lib/itrigga/admin_api_client/proxies/admin.rb', line 6

def self.included(base)
  base.send("extend",self)
end

Instance Method Details

#get_client(opts = {}) ⇒ Object



18
19
20
21
# File 'lib/itrigga/admin_api_client/proxies/admin.rb', line 18

def get_client(opts = {})
  require_param(opts, :client_id)
  Itrigga::AdminApiClient.make_call "admin", "clients/#{opts[:client_id]}", opts
end

#get_clients(opts = {}) ⇒ Object



14
15
16
# File 'lib/itrigga/admin_api_client/proxies/admin.rb', line 14

def get_clients(opts = {})
  Itrigga::AdminApiClient.make_call "admin", "clients", opts
end

#get_stats(opts = {}) ⇒ Object



10
11
12
# File 'lib/itrigga/admin_api_client/proxies/admin.rb', line 10

def get_stats( opts = {})
  Itrigga::AdminApiClient.make_call "admin", "stats", opts
end