Class: Domainatrix::Url

Inherits:
Object
  • Object
show all
Defined in:
lib/squiggle/domain_parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#queryObject

Returns the value of attribute query.



4
5
6
# File 'lib/squiggle/domain_parser.rb', line 4

def query
  @query
end

Instance Method Details

#toplevelObject



6
7
8
# File 'lib/squiggle/domain_parser.rb', line 6

def toplevel
  [ domain, public_suffix ].compact.join(".")
end