Module: NetSuite::Actions::Get::Support::ClassMethods
- Defined in:
- lib/netsuite/actions/get.rb
Instance Method Summary collapse
Instance Method Details
#get(options = {}, credentials = {}) ⇒ Object
71 72 73 74 75 76 77 78 79 80 |
# File 'lib/netsuite/actions/get.rb', line 71 def get( = {}, credentials = {}) = { :internal_id => } unless .is_a?(Hash) response = NetSuite::Actions::Get.call([self, ], credentials) if response.success? new(response.body) else raise RecordNotFound, "#{self} with OPTIONS=#{.inspect} could not be found" end end |