Class: Construqt::Flavour::Ubuntu::EtcNetworkIptables::Section

Inherits:
Object
  • Object
show all
Defined in:
lib/construqt/flavour/ubuntu/flavour_ubuntu_result.rb

Defined Under Namespace

Classes: Block

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ Section

Returns a new instance of Section.



167
168
169
170
171
# File 'lib/construqt/flavour/ubuntu/flavour_ubuntu_result.rb', line 167

def initialize(name)
  @name = name
  @ipv4 = Block.new(self)
  @ipv6 = Block.new(self)
end

Instance Method Details

#commitv4Object



189
190
191
# File 'lib/construqt/flavour/ubuntu/flavour_ubuntu_result.rb', line 189

def commitv4
  @ipv4.commit
end

#commitv6Object



185
186
187
# File 'lib/construqt/flavour/ubuntu/flavour_ubuntu_result.rb', line 185

def commitv6
  @ipv6.commit
end

#ipv4Object



177
178
179
# File 'lib/construqt/flavour/ubuntu/flavour_ubuntu_result.rb', line 177

def ipv4
  @ipv4
end

#ipv6Object



181
182
183
# File 'lib/construqt/flavour/ubuntu/flavour_ubuntu_result.rb', line 181

def ipv6
  @ipv6
end

#nameObject



173
174
175
# File 'lib/construqt/flavour/ubuntu/flavour_ubuntu_result.rb', line 173

def name
  @name
end