Class: Construqt::Firewalls::Firewall::Nat

Inherits:
Object
  • Object
show all
Defined in:
lib/construqt/firewalls.rb

Defined Under Namespace

Classes: NatEntry

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#firewallObject (readonly)

Returns the value of attribute firewall.



81
82
83
# File 'lib/construqt/firewalls.rb', line 81

def firewall
  @firewall
end

#rulesObject (readonly)

Returns the value of attribute rules.



81
82
83
# File 'lib/construqt/firewalls.rb', line 81

def rules
  @rules
end

Instance Method Details

#addObject



101
102
103
104
105
# File 'lib/construqt/firewalls.rb', line 101

def add
  entry = NatEntry.new
  @rules << entry
  entry
end