Class: IPTables::Services
- Inherits:
-
Object
- Object
- IPTables::Services
- Defined in:
- lib/iptables/expansions.rb
Instance Attribute Summary collapse
-
#named ⇒ Object
readonly
Returns the value of attribute named.
Instance Method Summary collapse
-
#initialize(expansion_hash) ⇒ Services
constructor
A new instance of Services.
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
#named ⇒ Object (readonly)
Returns the value of attribute named.
54 55 56 |
# File 'lib/iptables/expansions.rb', line 54 def named @named end |