Class: ActiveSalesforce::BoxcarCommand::Insert

Inherits:
Base
  • Object
show all
Defined in:
lib/boxcar_command.rb

Instance Attribute Summary

Attributes inherited from Base

#args, #verb

Instance Method Summary collapse

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