Method: Addressable::URI#domain

Defined in:
lib/addressable/uri.rb

#domainObject

Returns the public suffix domain for this host.

Examples:

Addressable::URI.parse("http://www.example.co.uk").domain # => "example.co.uk"


1225
1226
1227
# File 'lib/addressable/uri.rb', line 1225

def domain
  PublicSuffix.domain(self.host, ignore_private: true)
end