Class: VagrantPlugins::ProxyConf::Config::AptProxy::AptProxyURI Private
- Inherits:
-
Object
- Object
- VagrantPlugins::ProxyConf::Config::AptProxy::AptProxyURI
- Defined in:
- lib/vagrant-proxyconf/config/apt_proxy.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Helper for constructing configuration values for apt.conf
Instance Attribute Summary collapse
- #scheme ⇒ Object readonly private
- #value ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(scheme, value) ⇒ AptProxyURI
constructor
private
A new instance of AptProxyURI.
- #to_s ⇒ Object private
Constructor Details
#initialize(scheme, value) ⇒ AptProxyURI
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of AptProxyURI.
52 53 54 55 |
# File 'lib/vagrant-proxyconf/config/apt_proxy.rb', line 52 def initialize(scheme, value) @scheme = scheme @value = value end |
Instance Attribute Details
#scheme ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
48 49 50 |
# File 'lib/vagrant-proxyconf/config/apt_proxy.rb', line 48 def scheme @scheme end |
#value ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
48 49 50 |
# File 'lib/vagrant-proxyconf/config/apt_proxy.rb', line 48 def value @value end |
Instance Method Details
#to_s ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
57 58 59 |
# File 'lib/vagrant-proxyconf/config/apt_proxy.rb', line 57 def to_s direct || "#{prefix}#{value}#{suffix}" end |