Class: Nl::Protocols::Genl::GenlMsgHdr
- Inherits:
-
Struct
- Object
- Struct
- Nl::Protocols::Genl::GenlMsgHdr
- Defined in:
- lib/nl/protocols/genl.rb,
lib/nl/protocols/genl.rb
Constant Summary collapse
Instance Attribute Summary collapse
-
#cmd ⇒ Object
Returns the value of attribute cmd.
-
#reserved ⇒ Object
Returns the value of attribute reserved.
-
#version ⇒ Object
Returns the value of attribute version.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#cmd ⇒ Object
Returns the value of attribute cmd
5 6 7 |
# File 'lib/nl/protocols/genl.rb', line 5 def cmd @cmd end |
#reserved ⇒ Object
Returns the value of attribute reserved
5 6 7 |
# File 'lib/nl/protocols/genl.rb', line 5 def reserved @reserved end |
#version ⇒ Object
Returns the value of attribute version
5 6 7 |
# File 'lib/nl/protocols/genl.rb', line 5 def version @version end |
Class Method Details
.decode(decoder) ⇒ Object
13 14 15 |
# File 'lib/nl/protocols/genl.rb', line 13 def self.decode(decoder) new(*decoder.get_values(FORMAT)) end |
Instance Method Details
#encode(encoder) ⇒ Object
17 18 19 |
# File 'lib/nl/protocols/genl.rb', line 17 def encode(encoder) encoder.put_values(FORMAT, to_a) end |