lib/desk/api.rb in desk-0.3.3 vs lib/desk/api.rb in desk-1.0.0
- old
+ new
@@ -16,10 +16,14 @@
send("#{key}=", options[key])
end
end
def endpoint
- "https://#{self.subdomain}.desk.com/api/#{self.version}/"
+ "https://#{self.subdomain}.desk.com"+api_path
+ end
+
+ def api_path
+ "/api/#{self.version}/"
end
include Connection
include Request
include Authentication