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
-
#host ⇒ Object
Returns the value of attribute host.
-
#host_default ⇒ Object
Returns the value of attribute host_default.
-
#path ⇒ Object
Returns the value of attribute path.
-
#path_default ⇒ Object
Returns the value of attribute path_default.
-
#port ⇒ Object
Returns the value of attribute port.
-
#port_default ⇒ Object
Returns the value of attribute port_default.
-
#scheme ⇒ Object
Returns the value of attribute scheme.
-
#scheme_default ⇒ Object
Returns the value of attribute scheme_default.
-
#uri ⇒ Object
Returns the value of attribute uri.
Instance Method Summary collapse
- #_uri ⇒ Object
-
#address ⇒ Object
Returns the value of attribute host.
-
#protocol ⇒ Object
Returns the value of attribute scheme.
Instance Attribute Details
#host ⇒ Object
Returns the value of attribute host.
6 7 8 |
# File 'lib/asir/uri_config.rb', line 6 def host @host end |
#host_default ⇒ Object
Returns the value of attribute host_default.
7 8 9 |
# File 'lib/asir/uri_config.rb', line 7 def host_default @host_default end |
#path ⇒ Object
Returns the value of attribute path.
6 7 8 |
# File 'lib/asir/uri_config.rb', line 6 def path @path end |
#path_default ⇒ Object
Returns the value of attribute path_default.
7 8 9 |
# File 'lib/asir/uri_config.rb', line 7 def path_default @path_default end |
#port ⇒ Object
Returns the value of attribute port.
6 7 8 |
# File 'lib/asir/uri_config.rb', line 6 def port @port end |
#port_default ⇒ Object
Returns the value of attribute port_default.
7 8 9 |
# File 'lib/asir/uri_config.rb', line 7 def port_default @port_default end |
#scheme ⇒ Object
Returns the value of attribute scheme.
6 7 8 |
# File 'lib/asir/uri_config.rb', line 6 def scheme @scheme end |
#scheme_default ⇒ Object
Returns the value of attribute scheme_default.
7 8 9 |
# File 'lib/asir/uri_config.rb', line 7 def scheme_default @scheme_default end |
#uri ⇒ Object
Returns the value of attribute uri.
6 7 8 |
# File 'lib/asir/uri_config.rb', line 6 def uri @uri end |
Instance Method Details
#_uri ⇒ Object
18 19 20 21 |
# File 'lib/asir/uri_config.rb', line 18 def _uri @_uri ||= URI === @uri ? @uri : URI.parse(uri) end |
#address ⇒ Object
Returns the value of attribute host.
10 11 12 |
# File 'lib/asir/uri_config.rb', line 10 def host @host end |
#protocol ⇒ Object
Returns the value of attribute scheme.
8 9 10 |
# File 'lib/asir/uri_config.rb', line 8 def scheme @scheme end |