Class: RogIQ::Remote::Clients

Inherits:
CommandBase show all
Defined in:
lib/rogiq/remote/clients.rb

Instance Method Summary collapse

Instance Method Details

#listObject



11
12
13
14
15
# File 'lib/rogiq/remote/clients.rb', line 11

def list
  q = { limit: options[:limit] }
  q[:search] = options[:search] unless options[:search].to_s.strip.empty?
  emit(api.get("/api/v1/cli/clients/list", q))
end

#onboarding(identifier) ⇒ Object



34
35
36
# File 'lib/rogiq/remote/clients.rb', line 34

def onboarding(identifier)
  emit(api.get("/api/v1/cli/clients/onboarding", { identifier: identifier }))
end

#research_status(identifier) ⇒ Object



24
25
26
# File 'lib/rogiq/remote/clients.rb', line 24

def research_status(identifier)
  emit(api.get("/api/v1/cli/clients/research_status", { identifier: identifier }))
end

#settings(identifier) ⇒ Object



29
30
31
# File 'lib/rogiq/remote/clients.rb', line 29

def settings(identifier)
  emit(api.get("/api/v1/cli/clients/settings", { identifier: identifier }))
end

#show(identifier) ⇒ Object



18
19
20
# File 'lib/rogiq/remote/clients.rb', line 18

def show(identifier)
  emit(api.get("/api/v1/cli/clients/show", { identifier: identifier }))
end

#subdomain(identifier) ⇒ Object



39
40
41
# File 'lib/rogiq/remote/clients.rb', line 39

def subdomain(identifier)
  emit(api.get("/api/v1/cli/clients/subdomain", { identifier: identifier }))
end