Class: Trema::SetEthAddr Abstract

Inherits:
Action
  • Object
show all
Defined in:
ruby/trema/set-eth-addr.rb

Overview

This class is abstract.

The base class of SetEthSrcAddr and SetEthDstAddr action.

Direct Known Subclasses

SetEthDstAddr, SetEthSrcAddr

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#mac_addressTrema::Mac (readonly)

Returns the object that holds #mac_address‘s internal representation.

Returns:



32
33
34
# File 'ruby/trema/set-eth-addr.rb', line 32

def mac_address
  @mac_address
end

Instance Method Details

#to_sObject



43
44
45
# File 'ruby/trema/set-eth-addr.rb', line 43

def to_s
  "#{ self.class.to_s }: mac_address=#{ @mac_address }"
end