Class: Construqt::Flavour::InterfaceDelegate

Inherits:
Object
  • Object
show all
Includes:
Delegate
Defined in:
lib/construqt/flavour/delegates.rb

Instance Method Summary collapse

Methods included from Delegate

#build_config, #default_name, #delegate, #delegate=, #description, #ident, #simple_name, #tags, #tags=, #vrrp, #vrrp=

Constructor Details

#initialize(interface) ⇒ InterfaceDelegate

Returns a new instance of InterfaceDelegate.



282
283
284
# File 'lib/construqt/flavour/delegates.rb', line 282

def initialize(interface)
  self.delegate = interface
end

Instance Method Details

#_identObject



290
291
292
293
# File 'lib/construqt/flavour/delegates.rb', line 290

def _ident
  self.clazz.ident
  #        "#{self.delegate.clazz.name}_#{self.name}"
end

#addressObject



299
300
301
# File 'lib/construqt/flavour/delegates.rb', line 299

def address
  self.delegate.address
end

#cableObject



315
316
317
# File 'lib/construqt/flavour/delegates.rb', line 315

def cable
  self.delegate.cable
end

#cable=(a) ⇒ Object



319
320
321
# File 'lib/construqt/flavour/delegates.rb', line 319

def cable=(a)
  self.delegate.cable = a
end

#clazzObject



286
287
288
# File 'lib/construqt/flavour/delegates.rb', line 286

def clazz
  self.delegate.clazz
end

#hostObject



307
308
309
# File 'lib/construqt/flavour/delegates.rb', line 307

def host
  self.delegate.host
end

#interfacesObject



327
328
329
# File 'lib/construqt/flavour/delegates.rb', line 327

def interfaces
  self.delegate.interfaces
end

#nameObject



295
296
297
# File 'lib/construqt/flavour/delegates.rb', line 295

def name
  self.delegate.name
end

#networkObject



311
312
313
# File 'lib/construqt/flavour/delegates.rb', line 311

def network
  self.delegate.network
end

#priorityObject



303
304
305
# File 'lib/construqt/flavour/delegates.rb', line 303

def priority
  self.delegate.priority
end

#templateObject



323
324
325
# File 'lib/construqt/flavour/delegates.rb', line 323

def template
  self.delegate.template
end