lib/domainatrix/url.rb in domainatrix-0.0.6 vs lib/domainatrix/url.rb in domainatrix-0.0.7
- old
+ new
@@ -1,9 +1,11 @@
module Domainatrix
class Url
- attr_reader :public_suffix, :domain, :subdomain, :path, :url
+ attr_reader :public_suffix, :domain, :subdomain, :path, :url, :scheme, :host
def initialize(attrs = {})
+ @scheme = attrs[:scheme]
+ @host = attrs[:host]
@url = attrs[:url]
@public_suffix = attrs[:public_suffix]
@domain = attrs[:domain]
@subdomain = attrs[:subdomain]
@path = attrs[:path]