lib/domainatrix/url.rb in domainatrix-0.0.3 vs lib/domainatrix/url.rb in domainatrix-0.0.4
- old
+ new
@@ -1,9 +1,10 @@
module Domainatrix
class Url
- attr_reader :tld, :domain, :subdomain, :path
+ attr_reader :tld, :domain, :subdomain, :path, :url
def initialize(attrs = {})
+ @url = attrs[:url]
@tld = attrs[:tld]
@domain = attrs[:domain]
@subdomain = attrs[:subdomain]
@path = attrs[:path]
end