Class: MiscEthernet
- Inherits:
-
BasicNetworkType
- Object
- BasicNetworkType
- MiscEthernet
- Defined in:
- lib/ifconfig/linux/network_types.rb
Overview
Base class for IPX and Appletalk classes Shouldn’t be used directly
Direct Known Subclasses
EtherTalkPhase2, IPX_Ethernet802_2, IPX_Ethernet802_3, IPX_EthernetII, IPX_EthernetSNAP
Instance Attribute Summary collapse
-
#addr ⇒ Object
readonly
Returns the value of attribute addr.
Attributes inherited from BasicNetworkType
Instance Method Summary collapse
-
#initialize(addr) ⇒ MiscEthernet
constructor
A new instance of MiscEthernet.
- #to_s ⇒ Object
Constructor Details
#initialize(addr) ⇒ MiscEthernet
Returns a new instance of MiscEthernet.
11 12 13 14 |
# File 'lib/ifconfig/linux/network_types.rb', line 11 def initialize(addr) super() @addr = addr end |
Instance Attribute Details
#addr ⇒ Object (readonly)
Returns the value of attribute addr.
15 16 17 |
# File 'lib/ifconfig/linux/network_types.rb', line 15 def addr @addr end |
Instance Method Details
#to_s ⇒ Object
16 17 18 |
# File 'lib/ifconfig/linux/network_types.rb', line 16 def to_s " #{@nettype} Address: #{@addr}" end |