Module: SfCli::Sf::Model
- Defined in:
- lib/sf_cli/sf/model.rb,
lib/sf_cli/sf/model/generator.rb,
lib/sf_cli/sf/model/dml_methods.rb,
lib/sf_cli/sf/model/base_methods.rb,
lib/sf_cli/sf/model/query_methods.rb,
lib/sf_cli/sf/model/query_condition.rb,
lib/sf_cli/sf/model/class_definition.rb,
lib/sf_cli/sf/model/sf_command_connection.rb
Overview
The module for object model definition and generation
Defined Under Namespace
Modules: BaseMethods, DmlMethods, QueryMethods Classes: ClassDefinition, Generator, SfCommandConnection
Class Method Summary collapse
-
.connection ⇒ Object
The connection object to access Salesforce.
-
.generate(object_names) ⇒ Object
generate object models.
-
.set_connection(conn) ⇒ Object
set the connection.
Class Method Details
.connection ⇒ Object
The connection object to access Salesforce
10 11 12 |
# File 'lib/sf_cli/sf/model.rb', line 10 def self.connection @@connection end |
.generate(object_names) ⇒ Object
generate object models
22 23 24 25 26 27 28 |
# File 'lib/sf_cli/sf/model.rb', line 22 def self.generate(object_names) generator = Generator.new(connection) object_names.each do |object_name| generator.generate(object_name) end end |
.set_connection(conn) ⇒ Object
set the connection
15 16 17 |
# File 'lib/sf_cli/sf/model.rb', line 15 def self.set_connection(conn) @@connection = conn end |