Class: VagrantPlugins::ProxyConf::Config::AptProxy::ConfigValue
- Inherits:
-
Object
- Object
- VagrantPlugins::ProxyConf::Config::AptProxy::ConfigValue
- Defined in:
- lib/vagrant-proxyconf/config/apt_proxy.rb
Instance Attribute Summary collapse
-
#proto ⇒ Object
readonly
Returns the value of attribute proto.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(proto, value) ⇒ ConfigValue
constructor
A new instance of ConfigValue.
-
#to_s ⇒ String
The full Apt configuration line.
Constructor Details
#initialize(proto, value) ⇒ ConfigValue
Returns a new instance of ConfigValue.
58 59 60 61 |
# File 'lib/vagrant-proxyconf/config/apt_proxy.rb', line 58 def initialize(proto, value) @proto = proto @value = value end |
Instance Attribute Details
#proto ⇒ Object (readonly)
Returns the value of attribute proto.
54 55 56 |
# File 'lib/vagrant-proxyconf/config/apt_proxy.rb', line 54 def proto @proto end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
54 55 56 |
# File 'lib/vagrant-proxyconf/config/apt_proxy.rb', line 54 def value @value end |
Instance Method Details
#to_s ⇒ String
Returns the full Apt configuration line.
64 65 66 |
# File 'lib/vagrant-proxyconf/config/apt_proxy.rb', line 64 def to_s set? ? %Q{Acquire::#{proto}::Proxy "#{proxy_uri}";\n} : "" end |