Class: Dcmgr::VNet::Netfilter::Chain

Inherits:
Object
  • Object
show all
Defined in:
lib/dcmgr/vnet/netfilter/chain.rb

Direct Known Subclasses

EbtablesChain, IptablesChain

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(table, name) ⇒ Chain

Returns a new instance of Chain.



11
12
13
14
# File 'lib/dcmgr/vnet/netfilter/chain.rb', line 11

def initialize(table,name)
  @table = table
  @name = name
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



8
9
10
# File 'lib/dcmgr/vnet/netfilter/chain.rb', line 8

def name
  @name
end

#tableObject (readonly)

Returns the value of attribute table.



9
10
11
# File 'lib/dcmgr/vnet/netfilter/chain.rb', line 9

def table
  @table
end