Class: Ruby::Rego::Builtins::Uri::Parser::Components

Inherits:
Struct
  • Object
show all
Defined in:
lib/ruby/rego/builtins/uri/parser.rb

Overview

The broken-down URL fields. uri.parse reads only scheme/host/path/raw_path/raw_query/ fragment; the rest (opaque, force_query, omit_host, raw_fragment, user) complete Go’s url.URL so consumers needing the whole struct (crypto.x509 URI SANs) can reconstruct it. user is the raw userinfo substring (Go keeps it un-decoded) or nil.

Instance Attribute Summary collapse

Instance Attribute Details

#force_queryObject

Returns the value of attribute force_query

Returns:

  • (Object)

    the current value of force_query



29
30
31
# File 'lib/ruby/rego/builtins/uri/parser.rb', line 29

def force_query
  @force_query
end

#fragmentObject

Returns the value of attribute fragment

Returns:

  • (Object)

    the current value of fragment



29
30
31
# File 'lib/ruby/rego/builtins/uri/parser.rb', line 29

def fragment
  @fragment
end

#hostObject

Returns the value of attribute host

Returns:

  • (Object)

    the current value of host



29
30
31
# File 'lib/ruby/rego/builtins/uri/parser.rb', line 29

def host
  @host
end

#omit_hostObject

Returns the value of attribute omit_host

Returns:

  • (Object)

    the current value of omit_host



29
30
31
# File 'lib/ruby/rego/builtins/uri/parser.rb', line 29

def omit_host
  @omit_host
end

#opaqueObject

Returns the value of attribute opaque

Returns:

  • (Object)

    the current value of opaque



29
30
31
# File 'lib/ruby/rego/builtins/uri/parser.rb', line 29

def opaque
  @opaque
end

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



29
30
31
# File 'lib/ruby/rego/builtins/uri/parser.rb', line 29

def path
  @path
end

#raw_fragmentObject

Returns the value of attribute raw_fragment

Returns:

  • (Object)

    the current value of raw_fragment



29
30
31
# File 'lib/ruby/rego/builtins/uri/parser.rb', line 29

def raw_fragment
  @raw_fragment
end

#raw_pathObject

Returns the value of attribute raw_path

Returns:

  • (Object)

    the current value of raw_path



29
30
31
# File 'lib/ruby/rego/builtins/uri/parser.rb', line 29

def raw_path
  @raw_path
end

#raw_queryObject

Returns the value of attribute raw_query

Returns:

  • (Object)

    the current value of raw_query



29
30
31
# File 'lib/ruby/rego/builtins/uri/parser.rb', line 29

def raw_query
  @raw_query
end

#schemeObject

Returns the value of attribute scheme

Returns:

  • (Object)

    the current value of scheme



29
30
31
# File 'lib/ruby/rego/builtins/uri/parser.rb', line 29

def scheme
  @scheme
end

#userObject

Returns the value of attribute user

Returns:

  • (Object)

    the current value of user



29
30
31
# File 'lib/ruby/rego/builtins/uri/parser.rb', line 29

def user
  @user
end