Skip to content
This repository has been archived by the owner on May 2, 2023. It is now read-only.

Commit

Permalink
Adde verbose output on get_record
Browse files Browse the repository at this point in the history
  • Loading branch information
James Christie committed Dec 26, 2012
1 parent e8b38bc commit 39d4456
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/netsuite-rest-client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ def get_record(record_type, internal_id_list, return_array_on_single=false)
internal_id_list.each_slice(@get_record_batch_size) do |id_chunk|
payload['internal_id_list'] = id_chunk
results += parse_json_result_from_rest(:post, params, :payload=>payload)
puts "Fetched #{results.count} records so far..." if options[:verbose]
end

results = results.first if results.length == 1 && !return_array_on_single
Expand Down

0 comments on commit 39d4456

Please sign in to comment.