mirror of
https://github.com/rickbarrette/redmine_qbo_lineitems.git
synced 2026-04-02 07:01:59 -04:00
Use self.page_size instead of a constant
This commit is contained in:
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user