Class: VpsAdminOS::Converter::Group

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, path) ⇒ Group

Returns a new instance of Group.



9
10
11
12
13
# File 'lib/vpsadminos-converter/group.rb', line 9

def initialize(name, path)
  @name = name
  @path = path
  @cgparams = []
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



7
8
9
# File 'lib/vpsadminos-converter/group.rb', line 7

def name
  @name
end

#pathObject

Returns the value of attribute path.



7
8
9
# File 'lib/vpsadminos-converter/group.rb', line 7

def path
  @path
end

Class Method Details

.defaultObject



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

def self.default
  new('default', 'default')
end

Instance Method Details

#dump_configObject



15
16
17
18
19
20
# File 'lib/vpsadminos-converter/group.rb', line 15

def dump_config
  {
    'path' => path,
    'cgparams' => [] # TODO
  }
end