module NetSuite::Actions::Initialize::Support::ClassMethods

Public Class Methods

new(object, credentials={}) click to toggle source
# File lib/netsuite/actions/initialize.rb, line 68
def initialize(object, credentials={})
  response = NetSuite::Actions::Initialize.call([self, object], credentials)
  if response.success?
    new(response.body)
  else
    raise InitializationError, "#{self}.initialize with #{object} failed."
  end
end