lib/zoho_hub/connection.rb in zoho_hub-0.1.10 vs lib/zoho_hub/connection.rb in zoho_hub-0.1.11
- old
+ new
@@ -20,10 +20,10 @@
BASE_PATH = '/crm/v2/'
def initialize(access_token:, api_domain: DEFAULT_DOMAIN, expires_in: 3600, refresh_token: nil)
@access_token = access_token
@expires_in = expires_in
- @api_domain = api_domain
+ @api_domain = api_domain || DEFAULT_DOMAIN
@refresh_token ||= refresh_token # do not overwrite if it's already set
end
def get(path, params = {})
log "GET #{path} with #{params}"