Class: Construqt::Firewalls::Firewall::Nat::NatEntry
- Inherits:
-
Object
- Object
- Construqt::Firewalls::Firewall::Nat::NatEntry
- Defined in:
- lib/construqt/firewalls.rb
Instance Method Summary collapse
- #from_is(direction) ⇒ Object
- #from_is_inbound? ⇒ Boolean
- #from_is_outbound? ⇒ Boolean
-
#initialize ⇒ NatEntry
constructor
A new instance of NatEntry.
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
#initialize ⇒ NatEntry
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
178 179 180 |
# File 'lib/construqt/firewalls.rb', line 178 def from_is_inbound? @from_is == :inbound end |
#from_is_outbound? ⇒ Boolean
181 182 183 |
# File 'lib/construqt/firewalls.rb', line 181 def from_is_outbound? @from_is == :outbound end |