Use self.page_size instead of a constant

This commit is contained in:
2026-03-08 23:29:16 -04:00
parent 3b51c961e3
commit 3463698f8d

View File

@@ -10,8 +10,6 @@
class ItemSyncService < SyncServiceBase
PAGE_SIZE = 10
private
# Specify the local model this service syncs
@@ -19,6 +17,11 @@ class ItemSyncService < SyncServiceBase
Item
end
# Specify a page size of 20, as the API only returns 20 items at a time.
def self.page_size
20
end
# Map relevant attributes from the QBO Employee to the local Employee model
def process_attributes(local, remote)
log "Processing Item ##{remote.id}"