Class: SDN::Message::Stop
- Inherits:
-
SDN::Message
- Object
- SDN::Message
- SDN::Message::Stop
- Defined in:
- lib/sdn/messages/control.rb
Overview
Stop movement
Constant Summary collapse
- MSG =
0x02
- PARAMS_LENGTH =
1
Instance Attribute Summary
Attributes inherited from SDN::Message
#ack_requested, #dest, #reserved, #src
Instance Method Summary collapse
-
#initialize(dest = nil, **kwargs) ⇒ Stop
constructor
A new instance of Stop.
- #params ⇒ Object
Methods inherited from SDN::Message
#class_inspect, #inspect, parse, #parse, readpartial, #serialize
Methods included from Helpers
#checksum, #from_number, #from_string, #is_group_address?, #parse_address, #print_address, #to_number, #to_string, #transform_param
Constructor Details
#initialize(dest = nil, **kwargs) ⇒ Stop
Returns a new instance of Stop.
56 57 58 59 |
# File 'lib/sdn/messages/control.rb', line 56 def initialize(dest = nil, **kwargs) kwargs[:dest] ||= dest super(**kwargs) end |
Instance Method Details
#params ⇒ Object
61 62 63 |
# File 'lib/sdn/messages/control.rb', line 61 def params transform_param(0) end |