class Indocker::Networks::Network

Attributes

containers[R]
name[R]

Public Class Methods

new(name) click to toggle source
# File lib/indocker/networks/network.rb, line 4
def initialize(name)
  @name = name
  @containers = []
end

Public Instance Methods

add_container(container) click to toggle source
# File lib/indocker/networks/network.rb, line 9
def add_container(container)
  @containers.push(container) if !@containers.include?(container)
end