Class: Construqt::Firewalls::Firewall::Host
- Inherits:
-
Object
- Object
- Construqt::Firewalls::Firewall::Host
- Defined in:
- lib/construqt/firewalls.rb
Defined Under Namespace
Classes: HostEntry
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) ⇒ Host
constructor
A new instance of Host.
Constructor Details
#initialize(firewall) ⇒ Host
Returns a new instance of Host.
294 295 296 297 |
# File 'lib/construqt/firewalls.rb', line 294 def initialize(firewall) @firewall = firewall @rules = [] end |
Instance Attribute Details
#firewall ⇒ Object (readonly)
Returns the value of attribute firewall.
293 294 295 |
# File 'lib/construqt/firewalls.rb', line 293 def firewall @firewall end |
#rules ⇒ Object (readonly)
Returns the value of attribute rules.
293 294 295 |
# File 'lib/construqt/firewalls.rb', line 293 def rules @rules end |