Class: Construqt::Firewalls::Firewall::Raw

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

Defined Under Namespace

Classes: RawEntry

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(firewall) ⇒ Raw

Returns a new instance of Raw.



27
28
29
30
# File 'lib/construqt/firewalls.rb', line 27

def initialize(firewall)
  @firewall = firewall
  @rules = []
end

Instance Attribute Details

#firewallObject (readonly)

Returns the value of attribute firewall.



26
27
28
# File 'lib/construqt/firewalls.rb', line 26

def firewall
  @firewall
end

Instance Method Details

#addObject



60
61
62
63
64
# File 'lib/construqt/firewalls.rb', line 60

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

#rulesObject



67
68
69
# File 'lib/construqt/firewalls.rb', line 67

def rules
  @rules
end