Class: VpsAdminOS::Converter::AutoStart

Inherits:
Object
  • Object
show all
Defined in:
lib/vpsadminos-converter/auto_start.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeAutoStart

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

#delayObject

Returns the value of attribute delay



3
4
5
# File 'lib/vpsadminos-converter/auto_start.rb', line 3

def delay
  @delay
end

#enabledObject

Returns the value of attribute enabled



3
4
5
# File 'lib/vpsadminos-converter/auto_start.rb', line 3

def enabled
  @enabled
end

#priorityObject

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

#dumpObject



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