Class: ARPTable::ARP
- Inherits:
-
Object
- Object
- ARPTable::ARP
- Defined in:
- lib/netutils/arp.rb
Instance Attribute Summary collapse
-
#ia ⇒ Object
readonly
Returns the value of attribute ia.
-
#interface ⇒ Object
readonly
Returns the value of attribute interface.
-
#ma ⇒ Object
readonly
Returns the value of attribute ma.
-
#static ⇒ Object
readonly
Returns the value of attribute static.
Instance Method Summary collapse
-
#initialize(ia, ma, interface, static) ⇒ ARP
constructor
A new instance of ARP.
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
#ia ⇒ Object (readonly)
Returns the value of attribute ia.
5 6 7 |
# File 'lib/netutils/arp.rb', line 5 def ia @ia end |
#interface ⇒ Object (readonly)
Returns the value of attribute interface.
5 6 7 |
# File 'lib/netutils/arp.rb', line 5 def interface @interface end |
#ma ⇒ Object (readonly)
Returns the value of attribute ma.
5 6 7 |
# File 'lib/netutils/arp.rb', line 5 def ma @ma end |
#static ⇒ Object (readonly)
Returns the value of attribute static.
5 6 7 |
# File 'lib/netutils/arp.rb', line 5 def static @static end |