module NetSuite::Actions::Get::Support::ClassMethods
Public Instance Methods
get(options = {}, credentials = {})
click to toggle source
# File lib/netsuite/actions/get.rb, line 67 def get(options = {}, credentials = {}) options = { :internal_id => options } unless options.is_a?(Hash) response = NetSuite::Actions::Get.call([self, options], credentials) if response.success? new(response.body) else raise RecordNotFound, "#{self} with OPTIONS=#{options.inspect} could not be found" end end