Class: ARPTable::ARP

Inherits:
Object
  • Object
show all
Defined in:
lib/netutils/arp.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ia, ma, interface, static) ⇒ ARP

Returns a new instance of ARP.



7
8
9
10
11
12
# File 'lib/netutils/arp.rb', line 7

def initialize(ia, ma, interface, static)
	@ia = ia
	@ma = MACAddr.new(ma)
	@interface = interface
	@static = static
end

Instance Attribute Details

#iaObject (readonly)

Returns the value of attribute ia.



5
6
7
# File 'lib/netutils/arp.rb', line 5

def ia
  @ia
end

#interfaceObject (readonly)

Returns the value of attribute interface.



5
6
7
# File 'lib/netutils/arp.rb', line 5

def interface
  @interface
end

#maObject (readonly)

Returns the value of attribute ma.



5
6
7
# File 'lib/netutils/arp.rb', line 5

def ma
  @ma
end

#staticObject (readonly)

Returns the value of attribute static.



5
6
7
# File 'lib/netutils/arp.rb', line 5

def static
  @static
end