Class: Capp::Packet::EthernetHeader

Inherits:
Struct
  • Object
show all
Defined in:
lib/capp/packet.rb

Overview

802.3 Ethernet header

Instance Attribute Summary collapse

Instance Attribute Details

#destinationObject

Returns the value of attribute destination

Returns:

  • (Object)

    the current value of destination



37
38
39
# File 'lib/capp/packet.rb', line 37

def destination
  @destination
end

#sourceObject

Returns the value of attribute source

Returns:

  • (Object)

    the current value of source



37
38
39
# File 'lib/capp/packet.rb', line 37

def source
  @source
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



37
38
39
# File 'lib/capp/packet.rb', line 37

def type
  @type
end