lib/tokyo_api/actionkit.rb in tokyo_api-1.5.1 vs lib/tokyo_api/actionkit.rb in tokyo_api-1.6.0
- old
+ new
@@ -1,5 +1,7 @@
+# frozen_string_literal: true
+
module TokyoApi
class Actionkit < Base
def base_path
'actionkit'
end
@@ -7,13 +9,11 @@
def full_user(id)
client.get_request("#{normalized_base_path}full_user/#{url_escape(id)}").body
end
def user_path(id, required_fields: nil)
- path = "/#{normalized_base_path}user/#{url_escape(id)}"
- unless required_fields.nil?
- path << "?#{required_fields_param(required_fields)}"
- end
+ path = String.new("/#{normalized_base_path}user/#{url_escape(id)}")
+ path << "?#{required_fields_param(required_fields)}" unless required_fields.nil?
path
end
end
end