Class: VagrantPlugins::ProxyConf::Config::AptProxy::ConfigValue Private
- Inherits:
-
Object
- Object
- VagrantPlugins::ProxyConf::Config::AptProxy::ConfigValue
- 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 building configuration lines
Instance Attribute Summary collapse
- #proto ⇒ Object readonly private
- #value ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(proto, value) ⇒ ConfigValue
constructor
private
A new instance of ConfigValue.
-
#to_s ⇒ String
private
The full Apt configuration line.
Constructor Details
#initialize(proto, value) ⇒ ConfigValue
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 ConfigValue.
64 65 66 67 |
# File 'lib/vagrant-proxyconf/config/apt_proxy.rb', line 64 def initialize(proto, value) @proto = proto @value = value end |
Instance Attribute Details
#proto ⇒ 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.
60 61 62 |
# File 'lib/vagrant-proxyconf/config/apt_proxy.rb', line 60 def proto @proto 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.
60 61 62 |
# File 'lib/vagrant-proxyconf/config/apt_proxy.rb', line 60 def value @value end |
Instance Method Details
#to_s ⇒ String
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 the full Apt configuration line.
70 71 72 |
# File 'lib/vagrant-proxyconf/config/apt_proxy.rb', line 70 def to_s set? ? %Q{Acquire::#{proto}::Proxy "#{proxy_uri}";\n} : "" end |