Class: SDN::Message::PostNodeAppVersion
- Inherits:
-
SDN::Message
- Object
- SDN::Message
- SDN::Message::PostNodeAppVersion
- Defined in:
- lib/sdn/message/post.rb
Direct Known Subclasses
Constant Summary collapse
- MSG =
0x75
- PARAMS_LENGTH =
6
Instance Attribute Summary collapse
-
#index_letter ⇒ Object
Returns the value of attribute index_letter.
-
#index_number ⇒ Object
Returns the value of attribute index_number.
-
#profile ⇒ Object
Returns the value of attribute profile.
-
#reference ⇒ Object
Returns the value of attribute reference.
Attributes inherited from SDN::Message
#ack_requested, #dest, #node_type, #src
Instance Method Summary collapse
Methods inherited from SDN::Message
#==, #class_inspect, expected_response?, inherited, #initialize, #inspect, parse, #serialize
Methods included from Helpers
#checksum, #from_number, #from_string, #group_address?, #node_type_from_number, #node_type_to_number, #node_type_to_string, #parse_address, #print_address, #to_number, #to_string, #transform_param
Constructor Details
This class inherits a constructor from SDN::Message
Instance Attribute Details
#index_letter ⇒ Object
Returns the value of attribute index_letter.
176 177 178 |
# File 'lib/sdn/message/post.rb', line 176 def index_letter @index_letter end |
#index_number ⇒ Object
Returns the value of attribute index_number.
176 177 178 |
# File 'lib/sdn/message/post.rb', line 176 def index_number @index_number end |
#profile ⇒ Object
Returns the value of attribute profile.
176 177 178 |
# File 'lib/sdn/message/post.rb', line 176 def profile @profile end |
#reference ⇒ Object
Returns the value of attribute reference.
176 177 178 |
# File 'lib/sdn/message/post.rb', line 176 def reference @reference end |
Instance Method Details
#parse(params) ⇒ Object
178 179 180 181 182 183 184 |
# File 'lib/sdn/message/post.rb', line 178 def parse(params) super self.reference = to_number(params[0..2]) self.index_letter = to_string(params[3..3]) self.index_number = transform_param(params[4]) self.profile = transform_param(params[5]) end |