Module: SfCli::Sf::Sobject::Describe
- Included in:
- Core
- Defined in:
- lib/sf_cli/sf/sobject/describe.rb
Instance Method Summary collapse
-
#describe(object_type, target_org: nil, api_version: nil) ⇒ Schema
Get a Salesforce object schema.
Instance Method Details
#describe(object_type, target_org: nil, api_version: nil) ⇒ Schema
Get a Salesforce object schema
21 22 23 24 25 26 27 28 29 |
# File 'lib/sf_cli/sf/sobject/describe.rb', line 21 def describe(object_type, target_org: nil, api_version: nil) flags = { :"sobject" => object_type, :"target-org" => target_org, :"api-version" => api_version, } json = exec(__method__, flags: flags, redirection: :null_stderr) Schema.new(json['result']) end |