Class: PacketGen::Header::HeaderClassMethods::Binding Private

Inherits:
Struct
  • Object
show all
Defined in:
lib/packetgen/header/header_class_methods.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Simple class to handle header association

Instance Attribute Summary collapse

Method Summary

Methods inherited from Struct

#force_binary

Instance Attribute Details

#keyObject

Returns the value of attribute key

Returns:

  • (Object)

    the current value of key



13
14
15
# File 'lib/packetgen/header/header_class_methods.rb', line 13

def key
  @key
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



13
14
15
# File 'lib/packetgen/header/header_class_methods.rb', line 13

def value
  @value
end