Class: IPTables::Services

Inherits:
Object
  • Object
show all
Defined in:
lib/iptables/expansions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(expansion_hash) ⇒ Services

Returns a new instance of Services.



55
56
57
58
59
60
61
# File 'lib/iptables/expansions.rb', line 55

def initialize(expansion_hash)
  @expansion_hash = expansion_hash
  @named = {}
  @expansion_hash.each{ |name, info|
    @named[name] = Service.new(name, info)
  }
end

Instance Attribute Details

#namedObject (readonly)

Returns the value of attribute named.



54
55
56
# File 'lib/iptables/expansions.rb', line 54

def named
  @named
end