class TestLab::Network

Network Class

@author Zachary Patten <zachary AT jovelabs DOT com>

Constants

STATUS_KEYS

Public Class Methods

by_priority(priority) click to toggle source
# File lib/testlab/network.rb, line 61
def by_priority(priority)
  self.all.select{ |n| n.priority == priority }
end
new(*args) click to toggle source
Calls superclass method
# File lib/testlab/network.rb, line 47
def initialize(*args)
  @ui = TestLab.ui

  @ui.logger.debug { "Loading Network" }
  super(*args)
  @ui.logger.debug { "Network '#{self.id}' Loaded" }
end
priority_groups() click to toggle source
# File lib/testlab/network.rb, line 57
def priority_groups
  self.all.map(&:priority).sort.uniq.reverse
end