lib/netsuite_rails/configuration.rb in netsuite_rails-0.1.0 vs lib/netsuite_rails/configuration.rb in netsuite_rails-0.2.0
- old
+ new
@@ -1,9 +1,11 @@
module NetSuiteRails
module Configuration
extend self
+ NETSUITE_MAX_PAGE_SIZE = 1000
+
def reset!
attributes.clear
end
def attributes
@@ -42,10 +44,10 @@
end
end
def polling_page_size(size = nil)
if size.nil?
- attributes[:size] ||= 1000
+ attributes[:size] ||= NETSUITE_MAX_PAGE_SIZE
else
attributes[:size] = size
end
end