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, 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
This class inherits a constructor from SDN::Message
Instance Attribute Details
#msg ⇒ Object
Returns the value of attribute msg.
161 162 163 |
# File 'lib/sdn/message.rb', line 161 def msg @msg end |
#params ⇒ Object
Returns the value of attribute params.
161 162 163 |
# File 'lib/sdn/message.rb', line 161 def params @params end |
Instance Method Details
#class_inspect ⇒ Object
165 166 167 168 169 170 |
# File 'lib/sdn/message.rb', line 165 def class_inspect result = ", @msg=%02xh" % msg return result if params.empty? result << ", @params=#{params.map { |b| "%02x" % b }.join(' ')}" end |