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

Commit

Permalink
Move rest-client constants into Netsuite::Client
Browse files Browse the repository at this point in the history
  • Loading branch information
James Christie and Brad Ediger authored and bradediger committed Jul 9, 2013
1 parent 94768ea commit a312c0b
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions lib/netsuite-rest-client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@
require 'json'
require 'uri'

BASE_URL = "https://rest.netsuite.com/app/site/hosting/restlet.nl"
DEFAULT_SCRIPT_ID = 13
DEFAULT_DEPLOY_ID = 1
DEFAULT_GET_RECORD_BATCH_SIZE = 10000
DEFAULT_SEARCH_BATCH_SIZE = 1000
DEFAULT_RETRY_LIMIT = 5
DEFAULT_REQUEST_TIMEOUT = -1
DEFAULT_UPSERT_BATCH_SIZE = 40
DEFAULT_DELETE_BATCH_SIZE = 60
DEFAULT_TRANSFORM_BATCH_SIZE = 10

module Netsuite
class Client

BASE_URL = "https://rest.netsuite.com/app/site/hosting/restlet.nl"
DEFAULT_SCRIPT_ID = 13
DEFAULT_DEPLOY_ID = 1
DEFAULT_GET_RECORD_BATCH_SIZE = 10000
DEFAULT_SEARCH_BATCH_SIZE = 1000
DEFAULT_RETRY_LIMIT = 5
DEFAULT_REQUEST_TIMEOUT = -1
DEFAULT_UPSERT_BATCH_SIZE = 40
DEFAULT_DELETE_BATCH_SIZE = 60
DEFAULT_TRANSFORM_BATCH_SIZE = 10

attr_accessor :headers, :request_timeout, :rest_script_id,
:search_script_id, :rest_deploy_id, :search_deploy_id

Expand Down

0 comments on commit a312c0b

Please sign in to comment.