Module: SfCli::Sf::Org::ListLimits
- Included in:
- Core
- Defined in:
- lib/sf_cli/sf/org/list_limits.rb
Defined Under Namespace
Classes: Limits
Constant Summary collapse
- Limit =
Data.define(:name, :remaining, :max)
Instance Method Summary collapse
-
#list_limits(target_org: nil, api_version: nil) ⇒ Limits
List the limits in your org.
Instance Method Details
#list_limits(target_org: nil, api_version: nil) ⇒ Limits
List the limits in your org
17 18 19 20 21 22 23 24 25 26 |
# File 'lib/sf_cli/sf/org/list_limits.rb', line 17 def list_limits(target_org: nil, api_version: nil) flags = { :"target-org" => target_org, :"api-version" => api_version, } action = __method__.to_s.tr('_', ' ') json = exec(action, flags: flags, redirection: :null_stderr) Limits.new(json['result']) end |