class Restforce::Client
def describe(sobject=nil)
# => { ... }
client.describe('Account')
# get the describe for the Account object
# => { ... }
client.describe
# get the global describe for all sobjects
Examples
sobject - Stringish name of the sobject (default: nil).
Public: Returns a detailed describe result for the specified sobject
def describe(sobject=nil) if sobject response = api_get "sobjects/#{sobject.to_s}/describe" response.body else response = api_get 'sobjects' response.body['sobjects'] end end