Class: PacketGen::Header::SCTP::SupportedAddrTypesParameter
- Inherits:
-
Parameter
- Object
- BinStruct::AbstractTLV
- Parameter
- PacketGen::Header::SCTP::SupportedAddrTypesParameter
- Defined in:
- lib/packetgen/header/sctp/parameter.rb,
lib/packetgen/header/sctp/parameter.rb
Overview
Supported address types parameter. æ Parameter whose value is an array of supported address types (as BinStruct::Int16
).
Constant Summary
Constants inherited from Parameter
Instance Method Summary collapse
-
#to_human ⇒ ::String
Get human-readable description.
Methods inherited from Parameter
Methods included from Padded32
Instance Method Details
#to_human ⇒ ::String
Get human-readable description
129 130 131 132 133 134 |
# File 'lib/packetgen/header/sctp/parameter.rb', line 129 def to_human types = self[:value].map(&:to_i).map do |int16| Parameter::TYPES.key(int16) || int16.to_s end.join(',') "<#{parameter_name}: #{types}>" end |