lib/netsuite/records/classification.rb in netsuite-0.0.15 vs lib/netsuite/records/classification.rb in netsuite-0.0.16

- old
+ new

@@ -12,15 +12,15 @@ @internal_id = attributes.delete(:internal_id) || attributes.delete(:@internal_id) @external_id = attributes.delete(:external_id) || attributes.delete(:@external_id) initialize_from_attributes_hash(attributes) end - def self.get(id) - response = Actions::Get.call(id, self) + def self.get(options = {}) + response = Actions::Get.call(self, options) if response.success? new(response.body) else - raise RecordNotFound, "#{self} with ID=#{id} could not be found" + raise RecordNotFound, "#{self} with OPTIONS=#{options.inspect} could not be found" end end end end