Class: Domainatrix::Url

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#queryObject

Returns the value of attribute query.



3
4
5
# File 'lib/nfcollector/domain_parser.rb', line 3

def query
  @query
end

Instance Method Details

#toplevelObject



5
6
7
# File 'lib/nfcollector/domain_parser.rb', line 5

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