lib/ace-client/base.rb in ace-client-0.0.7 vs lib/ace-client/base.rb in ace-client-0.0.8
- old
+ new
@@ -40,7 +40,12 @@
start_time = Time.now
@last_response = yield
@last_response_time = Time.now - start_time
@last_response
end
+
+ def endpoint_url
+ protocol = use_ssl ? 'https' : 'http'
+ protocol + '://' + endpoint
+ end
end
end