Sha256: a44b711807e07afff8d7b5bd3968524ee3c4ad8ff8d156885e9f70b902e1b0a5
Contents?: true
Size: 671 Bytes
Versions: 126
Compression:
Stored size: 671 Bytes
Contents
class TestLab class Container module Interface # Container primary interface # # Returns the primary interface for the container. If the container has # multiple interfaces, this is based on which ever interface is marked # with the primary flag. If the container only has one interface, then # it is returned. # # @return [TestLab::Interface] The primary interface for the container. def primary_interface if self.interfaces.any?{ |i| i.primary == true } self.interfaces.find{ |i| i.primary == true } else self.interfaces.first end end end end end
Version data entries
126 entries across 126 versions & 1 rubygems