Module: VpsAdminOS::Converter::NetInterface

Defined in:
lib/vpsadminos-converter/net_interface.rb

Defined Under Namespace

Classes: Base, Bridge, Routed

Class Method Summary collapse

Class Method Details

.for(type) ⇒ Object



8
9
10
# File 'lib/vpsadminos-converter/net_interface.rb', line 8

def self.for(type)
  @types[type]
end

.register(type, klass) ⇒ Object



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

def self.register(type, klass)
  @types ||= {}
  @types[type] = klass
end