Module: Restforce::DB::Model::ClassMethods

Defined in:
lib/restforce/db/model.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#sync_with(salesforce_model, **options) ⇒ Object

Public: Initializes a Restforce::DB::Mapping defining this model's relationship to a Salesforce object type.

salesforce_model - A String name of an object type in Salesforce. options - A Hash of options to pass through to the Mapping.

Returns a Restforce::DB::Mapping.



25
26
27
# File 'lib/restforce/db/model.rb', line 25

def sync_with(salesforce_model, **options)
  Mapping.new(self, salesforce_model, options)
end