Class: Construqt::Firewalls::Firewall::Nat
- Inherits:
-
Object
- Object
- Construqt::Firewalls::Firewall::Nat
- Defined in:
- lib/construqt/firewalls.rb
Defined Under Namespace
Classes: NatEntry
Instance Attribute Summary collapse
-
#firewall ⇒ Object
readonly
Returns the value of attribute firewall.
-
#rules ⇒ Object
readonly
Returns the value of attribute rules.
Instance Method Summary collapse
- #add ⇒ Object
-
#initialize(firewall) ⇒ Nat
constructor
A new instance of Nat.
Constructor Details
#initialize(firewall) ⇒ Nat
82 83 84 85 |
# File 'lib/construqt/firewalls.rb', line 82 def initialize(firewall) @firewall = firewall @rules = [] end |
Instance Attribute Details
#firewall ⇒ Object (readonly)
Returns the value of attribute firewall.
81 82 83 |
# File 'lib/construqt/firewalls.rb', line 81 def firewall @firewall end |
#rules ⇒ Object (readonly)
Returns the value of attribute rules.
81 82 83 |
# File 'lib/construqt/firewalls.rb', line 81 def rules @rules end |
Instance Method Details
#add ⇒ Object
101 102 103 104 105 |
# File 'lib/construqt/firewalls.rb', line 101 def add entry = NatEntry.new @rules << entry entry end |