From edcde14eca622ab5657eb02632e9aa93914ed134 Mon Sep 17 00:00:00 2001 From: 1g10squad <46529450+1g10squad@users.noreply.github.com> Date: Mon, 15 Apr 2019 13:04:26 +0530 Subject: [PATCH] Update url.rb added @url_with_protocol, now user can get their URLs with protocol "http/https" "http://www.pauldix.net" --- lib/domainatrix/url.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/domainatrix/url.rb b/lib/domainatrix/url.rb index 9b2c0d0..de5b683 100644 --- a/lib/domainatrix/url.rb +++ b/lib/domainatrix/url.rb @@ -7,6 +7,7 @@ def initialize(attrs = {}) @host = attrs[:host] || '' @port = attrs[:port].to_s @url = attrs[:url] || '' + @url_with_protocol = "#{attrs[:scheme]}#{attrs[:url]}" || '' @public_suffix = attrs[:public_suffix] || '' @domain = attrs[:domain] || '' @subdomain = attrs[:subdomain] || ''