Class: RogIQ::Remote::Accounts

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

Instance Method Summary collapse

Instance Method Details

#listObject



11
12
13
14
15
# File 'lib/rogiq/remote/accounts.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/accounts/list", q))
end

#show(identifier) ⇒ Object



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

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

#subscription(identifier) ⇒ Object



28
29
30
# File 'lib/rogiq/remote/accounts.rb', line 28

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

#usage(identifier) ⇒ Object



23
24
25
# File 'lib/rogiq/remote/accounts.rb', line 23

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

#users(identifier) ⇒ Object



33
34
35
# File 'lib/rogiq/remote/accounts.rb', line 33

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