Class: VpsAdminOS::Converter::AutoStart
- Inherits:
-
Object
- Object
- VpsAdminOS::Converter::AutoStart
- Defined in:
- lib/vpsadminos-converter/auto_start.rb
Instance Attribute Summary collapse
-
#delay ⇒ Object
Returns the value of attribute delay.
-
#enabled ⇒ Object
Returns the value of attribute enabled.
-
#priority ⇒ Object
Returns the value of attribute priority.
Instance Method Summary collapse
- #dump ⇒ Object
-
#initialize ⇒ AutoStart
constructor
A new instance of AutoStart.
Constructor Details
#initialize ⇒ AutoStart
Returns a new instance of AutoStart.
5 6 7 8 9 |
# File 'lib/vpsadminos-converter/auto_start.rb', line 5 def initialize @enabled = false @priority = 10 @delay = 5 end |
Instance Attribute Details
#delay ⇒ Object
Returns the value of attribute delay.
3 4 5 |
# File 'lib/vpsadminos-converter/auto_start.rb', line 3 def delay @delay end |
#enabled ⇒ Object
Returns the value of attribute enabled.
3 4 5 |
# File 'lib/vpsadminos-converter/auto_start.rb', line 3 def enabled @enabled end |
#priority ⇒ Object
Returns the value of attribute priority.
3 4 5 |
# File 'lib/vpsadminos-converter/auto_start.rb', line 3 def priority @priority end |
Instance Method Details
#dump ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'lib/vpsadminos-converter/auto_start.rb', line 11 def dump return nil unless enabled { 'priority' => priority, 'delay' => delay } end |