Class: VagrantPlugins::RDP::Config
- Inherits:
-
Object
- Object
- VagrantPlugins::RDP::Config
- Defined in:
- lib/vagrant-rdp/config.rb
Instance Attribute Summary collapse
-
#height ⇒ Object
Returns the value of attribute height.
-
#width ⇒ Object
Returns the value of attribute width.
Instance Method Summary collapse
- #finalize! ⇒ Object
-
#initialize ⇒ Config
constructor
A new instance of Config.
- #validate(machine) ⇒ Object
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
9 10 11 12 |
# File 'lib/vagrant-rdp/config.rb', line 9 def initialize @width = UNSET_VALUE @height = UNSET_VALUE end |
Instance Attribute Details
#height ⇒ Object
Returns the value of attribute height.
7 8 9 |
# File 'lib/vagrant-rdp/config.rb', line 7 def height @height end |
#width ⇒ Object
Returns the value of attribute width.
6 7 8 |
# File 'lib/vagrant-rdp/config.rb', line 6 def width @width end |
Instance Method Details
#finalize! ⇒ Object
20 21 22 23 |
# File 'lib/vagrant-rdp/config.rb', line 20 def finalize! @width = 1024 if @width == UNSET_VALUE @height = 768 if @height == UNSET_VALUE end |
#validate(machine) ⇒ Object
14 15 16 17 18 |
# File 'lib/vagrant-rdp/config.rb', line 14 def validate(machine) errors = [] { "RDP" => errors } end |