lib/budgea_client/configuration.rb in budgea_client-1.4.4 vs lib/budgea_client/configuration.rb in budgea_client-2.0.0
- old
+ new
@@ -1,7 +1,17 @@
-# frozen_string_literal: true
+=begin
+#Budgea API Documentation
+#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+
+OpenAPI spec version: 2.0
+
+Generated by: https://github.com/swagger-api/swagger-codegen.git
+Swagger Codegen version: 2.4.1
+
+=end
+
require 'uri'
module BudgeaClient
class Configuration
# Defines url scheme
@@ -158,10 +168,10 @@
end
def base_path=(base_path)
# Add leading and trailing slashes to base_path
@base_path = "/#{base_path}".gsub(/\/+/, '/')
- @base_path = "" if @base_path == "/"
+ @base_path = '' if @base_path == '/'
end
def base_url
url = "#{scheme}://#{[host, base_path].join('/').gsub(/\/+/, '/')}".sub(/\/+\z/, '')
URI.encode(url)