Module: NetSuite::Actions::Update::Support
- Defined in:
- lib/netsuite/actions/update.rb
Instance Method Summary collapse
Instance Method Details
#update(options = {}, credentials = {}) ⇒ Object
73 74 75 76 77 78 79 80 81 82 83 |
# File 'lib/netsuite/actions/update.rb', line 73 def update( = {}, credentials={}) [:internal_id] = internal_id if respond_to?(:internal_id) && internal_id if !.include?(:external_id) && (respond_to?(:external_id) && external_id) [:external_id] = external_id end response = NetSuite::Actions::Update.call([self.class, ], credentials) @errors = response.errors response.success? end |