Class: Construqt::Firewalls::Firewall::Forward
- Inherits:
-
Object
- Object
- Construqt::Firewalls::Firewall::Forward
- Defined in:
- lib/construqt/firewalls.rb
Defined Under Namespace
Classes: ForwardEntry
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) ⇒ Forward
constructor
A new instance of Forward.
Constructor Details
#initialize(firewall) ⇒ Forward
Returns a new instance of Forward.
221 222 223 224 |
# File 'lib/construqt/firewalls.rb', line 221 def initialize(firewall) @firewall = firewall @rules = [] end |
Instance Attribute Details
#firewall ⇒ Object (readonly)
Returns the value of attribute firewall.
220 221 222 |
# File 'lib/construqt/firewalls.rb', line 220 def firewall @firewall end |
#rules ⇒ Object (readonly)
Returns the value of attribute rules.
220 221 222 |
# File 'lib/construqt/firewalls.rb', line 220 def rules @rules end |
Instance Method Details
#add ⇒ Object
276 277 278 279 280 281 |
# File 'lib/construqt/firewalls.rb', line 276 def add entry = ForwardEntry.new #puts "ForwardEntry: #{@firewall.name} #{entry.input_only?} #{entry.output_only?}" @rules << entry entry end |