Module: ASIR::UriConfig

Included in:
Transport::ConnectionOriented
Defined in:
lib/asir/uri_config.rb

Constant Summary collapse

S_TCP =
'tcp'.freeze
S_LOCALHOST =
'127.0.0.1'.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#hostObject

Returns the value of attribute host.



6
7
8
# File 'lib/asir/uri_config.rb', line 6

def host
  @host
end

#host_defaultObject

Returns the value of attribute host_default.



7
8
9
# File 'lib/asir/uri_config.rb', line 7

def host_default
  @host_default
end

#pathObject

Returns the value of attribute path.



6
7
8
# File 'lib/asir/uri_config.rb', line 6

def path
  @path
end

#path_defaultObject

Returns the value of attribute path_default.



7
8
9
# File 'lib/asir/uri_config.rb', line 7

def path_default
  @path_default
end

#portObject

Returns the value of attribute port.



6
7
8
# File 'lib/asir/uri_config.rb', line 6

def port
  @port
end

#port_defaultObject

Returns the value of attribute port_default.



7
8
9
# File 'lib/asir/uri_config.rb', line 7

def port_default
  @port_default
end

#schemeObject

Returns the value of attribute scheme.



6
7
8
# File 'lib/asir/uri_config.rb', line 6

def scheme
  @scheme
end

#scheme_defaultObject

Returns the value of attribute scheme_default.



7
8
9
# File 'lib/asir/uri_config.rb', line 7

def scheme_default
  @scheme_default
end

#uriObject

Returns the value of attribute uri.



6
7
8
# File 'lib/asir/uri_config.rb', line 6

def uri
  @uri
end

Instance Method Details

#_uriObject



18
19
20
21
# File 'lib/asir/uri_config.rb', line 18

def _uri
  @_uri ||=
    URI === @uri ? @uri : URI.parse(uri)
end

#addressObject

Returns the value of attribute host.



10
11
12
# File 'lib/asir/uri_config.rb', line 10

def host
  @host
end

#protocolObject

Returns the value of attribute scheme.



8
9
10
# File 'lib/asir/uri_config.rb', line 8

def scheme
  @scheme
end