class Addressable::URI

def host

Returns:
  • (String) - The host component.
def host
  return instance_variable_defined?(:@host) ? @host : nil
end