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.



97
98
99
100
# File 'lib/construqt/firewalls.rb', line 97

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

Instance Attribute Details

#firewallObject (readonly)

Returns the value of attribute firewall.



96
97
98
# File 'lib/construqt/firewalls.rb', line 96

def firewall
  @firewall
end

Instance Method Details

#addObject



133
134
135
136
137
# File 'lib/construqt/firewalls.rb', line 133

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

#rulesObject



140
141
142
# File 'lib/construqt/firewalls.rb', line 140

def rules
  @rules
end