Module: PacketGen::Header::SCTP::ParameterMixin
- Includes:
- Padded32
- Included in:
- CookiePreservativeParameter, ECNParameter, HearbeatInfoParameter, HostnameParameter, IPv4Parameter, IPv6Parameter, Parameter, StateCookieParameter, SupportedAddrTypesParameter, UnrecognizedParameter
- Defined in:
- lib/packetgen/header/sctp/parameter.rb
Overview
Common methods to Init and InitAck parameters
Instance Method Summary collapse
-
#parameter_name ⇒ String
Get parameter name.
- #to_human ⇒ String
Methods included from Padded32
Instance Method Details
#parameter_name ⇒ String
Get parameter name
19 20 21 |
# File 'lib/packetgen/header/sctp/parameter.rb', line 19 def parameter_name self.class.name.split('::').last.delete_suffix('Parameter') end |
#to_human ⇒ String
24 25 26 |
# File 'lib/packetgen/header/sctp/parameter.rb', line 24 def to_human "<#{parameter_name}: #{value}>" end |