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

Inherits:
Object
  • Object
show all
Includes:
Construqt::Firewalls::FromToNetAddr, InputOutputOnly, Util::Chainable
Defined in:
lib/construqt/firewalls.rb

Instance Method Summary collapse

Methods included from InputOutputOnly

#input_only, #input_only?, #output_only, #output_only?

Methods included from Construqt::Firewalls::FromToNetAddr

#from_net_addr, #get_from_net_addr, #get_to_net_addr, #to_net_addr

Methods included from Util::Chainable

chainable_attr, chainable_attr_value, included

Constructor Details

#initializeNatEntry

Returns a new instance of NatEntry.



174
175
176
# File 'lib/construqt/firewalls.rb', line 174

def initialize
  @from_is = nil
end

Instance Method Details

#from_is(direction) ⇒ Object



184
185
186
187
# File 'lib/construqt/firewalls.rb', line 184

def from_is(direction)
  @from_is = direction
  self
end

#from_is_inbound?Boolean

Returns:

  • (Boolean)


178
179
180
# File 'lib/construqt/firewalls.rb', line 178

def from_is_inbound?
  @from_is == :inbound
end

#from_is_outbound?Boolean

Returns:

  • (Boolean)


181
182
183
# File 'lib/construqt/firewalls.rb', line 181

def from_is_outbound?
  @from_is == :outbound
end