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

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

Overview

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



7
8
9
# File 'lib/packetgen/header/header_class_methods.rb', line 7

def key
  @key
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



7
8
9
# File 'lib/packetgen/header/header_class_methods.rb', line 7

def value
  @value
end