Class: SDN::Message::UnknownMessage
- Inherits:
-
SDN::Message
- Object
- SDN::Message
- SDN::Message::UnknownMessage
- Defined in:
- lib/sdn/message.rb
Overview
messages after this point were decoded from UAI+ communication and may be named wrong
Direct Known Subclasses
Instance Attribute Summary collapse
-
#msg ⇒ Object
Returns the value of attribute msg.
-
#params ⇒ Object
Returns the value of attribute params.
Attributes inherited from SDN::Message
#ack_requested, #dest, #reserved, #src
Instance Method Summary collapse
Methods inherited from SDN::Message
#initialize, #inspect, parse, #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
This class inherits a constructor from SDN::Message
Instance Attribute Details
#msg ⇒ Object
Returns the value of attribute msg.
126 127 128 |
# File 'lib/sdn/message.rb', line 126 def msg @msg end |
#params ⇒ Object
Returns the value of attribute params.
126 127 128 |
# File 'lib/sdn/message.rb', line 126 def params @params end |
Instance Method Details
#class_inspect ⇒ Object
130 131 132 133 134 135 |
# File 'lib/sdn/message.rb', line 130 def class_inspect result = ", @msg=%02xh" % msg return result if params.empty? result << ", @params=#{params.map { |b| "%02x" % b }.join(' ')}" end |