class Construqt::Firewalls::Firewall::Forward::ForwardEntry

Public Class Methods

new() click to toggle source
# File lib/construqt/firewalls.rb, line 250
def initialize
  @from_is = nil
end

Public Instance Methods

from_is(direction) click to toggle source
# File lib/construqt/firewalls.rb, line 260
def from_is(direction)
  @from_is = direction
  self
end
from_is_inbound?() click to toggle source
# File lib/construqt/firewalls.rb, line 254
def from_is_inbound?
  @from_is == :inbound
end
from_is_outbound?() click to toggle source
# File lib/construqt/firewalls.rb, line 257
def from_is_outbound?
  @from_is == :outbound
end
get_ports() click to toggle source
# File lib/construqt/firewalls.rb, line 271
def get_ports
  @ports ||= []
end
port(port) click to toggle source
# File lib/construqt/firewalls.rb, line 265
def port(port)
  @ports ||= []
  @ports << port
  self
end