Class: Trema::SetIpAddr Abstract

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

Overview

This class is abstract.

The base class of SetIpSrcAddr and SetIpDstAddr action.

Direct Known Subclasses

SetIpDstAddr, SetIpSrcAddr

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#ip_addressIPAddr (readonly)

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

Returns:

  • (IPAddr)

    the object that holds #ip_address‘s internal representation.



29
30
31
# File 'ruby/trema/set-ip-addr.rb', line 29

def ip_address
  @ip_address
end

Instance Method Details

#to_sObject



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

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