Class: Construqt::Firewalls::Firewall::Raw::RawEntry
- Inherits:
-
Object
- Object
- Construqt::Firewalls::Firewall::Raw::RawEntry
- Defined in:
- lib/construqt/firewalls.rb
Instance Method Summary collapse
- #from_is(direction) ⇒ Object
- #from_is_inbound? ⇒ Boolean
- #from_is_outbound? ⇒ Boolean
-
#initialize ⇒ RawEntry
constructor
A new instance of RawEntry.
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 ⇒ RawEntry
Returns a new instance of RawEntry.
117 118 119 |
# File 'lib/construqt/firewalls.rb', line 117 def initialize @from_is = nil end |
Instance Method Details
#from_is(direction) ⇒ Object
127 128 129 130 |
# File 'lib/construqt/firewalls.rb', line 127 def from_is(direction) @from_is = direction self end |
#from_is_inbound? ⇒ Boolean
121 122 123 |
# File 'lib/construqt/firewalls.rb', line 121 def from_is_inbound? @from_is == :inbound end |
#from_is_outbound? ⇒ Boolean
124 125 126 |
# File 'lib/construqt/firewalls.rb', line 124 def from_is_outbound? @from_is == :outbound end |