Class: ActiveSalesforce::BoxcarCommand::Insert
- Defined in:
- lib/boxcar_command.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
- #after_execute(result) ⇒ Object
-
#initialize(connection, sobject, idproxy) ⇒ Insert
constructor
A new instance of Insert.
Constructor Details
#initialize(connection, sobject, idproxy) ⇒ Insert
Returns a new instance of Insert.
39 40 41 42 |
# File 'lib/boxcar_command.rb', line 39 def initialize(connection, sobject, idproxy) super(connection, :create, sobject) @idproxy = idproxy end |
Instance Method Details
#after_execute(result) ⇒ Object
44 45 46 47 |
# File 'lib/boxcar_command.rb', line 44 def after_execute(result) id = result[:id] @idproxy << id if id end |