Class: Construqt::Firewalls::Firewall::Raw::RawEntry

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

#initializeRawEntry

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

Returns:

  • (Boolean)


121
122
123
# File 'lib/construqt/firewalls.rb', line 121

def from_is_inbound?
  @from_is == :inbound
end

#from_is_outbound?Boolean

Returns:

  • (Boolean)


124
125
126
# File 'lib/construqt/firewalls.rb', line 124

def from_is_outbound?
  @from_is == :outbound
end