Class: MiscEthernet

Inherits:
BasicNetworkType show all
Defined in:
lib/ifconfig/linux/network_types.rb

Overview

Base class for IPX and Appletalk classes Shouldn’t be used directly

Instance Attribute Summary collapse

Attributes inherited from BasicNetworkType

#nettype

Instance Method Summary collapse

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

#addrObject (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_sObject



16
17
18
# File 'lib/ifconfig/linux/network_types.rb', line 16

def to_s
  " #{@nettype} Address: #{@addr}"
end