class Addressable::URI

def authority

Experimental RBS support (using type sampling data from the type_fusion project).

def authority: () -> String

This signature was generated using 13 samples from 2 applications.

Returns:
  • (String) - The authority component.
def authority
  self.host && @authority ||= begin
    authority = String.new
    if self.userinfo != nil
      authority << "#{self.userinfo}@"
    end
    authority << self.host
    if self.port != nil
      authority << ":#{self.port}"
    end
    authority
  end
end