Class: RogIQ::Remote::Accounts
- Inherits:
-
CommandBase
- Object
- Thor
- CommandBase
- RogIQ::Remote::Accounts
- Defined in:
- lib/rogiq/remote/accounts.rb
Instance Method Summary collapse
- #list ⇒ Object
- #show(identifier) ⇒ Object
- #subscription(identifier) ⇒ Object
- #usage(identifier) ⇒ Object
- #users(identifier) ⇒ Object
Instance Method Details
#list ⇒ Object
11 12 13 14 15 |
# File 'lib/rogiq/remote/accounts.rb', line 11 def list q = { limit: [:limit] } q[:search] = [:search] unless [: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 |