Module: SfCli::Sf::Sobject::List
- Included in:
- Core
- Defined in:
- lib/sf_cli/sf/sobject/list.rb
Instance Method Summary collapse
-
#list(object_type, target_org: nil, api_version: nil) ⇒ Object
List all Salesforce objects of a specified category.
Instance Method Details
#list(object_type, target_org: nil, api_version: nil) ⇒ Object
List all Salesforce objects of a specified category.
10 11 12 13 14 15 16 17 18 |
# File 'lib/sf_cli/sf/sobject/list.rb', line 10 def list(object_type, target_org: nil, api_version: nil) flags = { :"sobject" => (object_type.to_sym == :custom ? :custom : :all), :"target-org" => target_org, :"api-version" => api_version, } json = exec(__method__, flags: flags, redirection: :null_stderr) json['result'] end |