Class: SDN::Message::ILT2::PostLockStatus
- Inherits:
-
SDN::Message
- Object
- SDN::Message
- SDN::Message::ILT2::PostLockStatus
- Defined in:
- lib/sdn/message/ilt2/post.rb
Constant Summary collapse
- MSG =
0x6B
- PARAMS_LENGTH =
1
Instance Attribute Summary collapse
-
#priority ⇒ Object
0 for not locked.
Attributes inherited from SDN::Message
#ack_requested, #dest, #node_type, #src
Instance Method Summary collapse
-
#initialize(priority = nil, **kwargs) ⇒ PostLockStatus
constructor
A new instance of PostLockStatus.
- #params ⇒ Object
- #parse(params) ⇒ Object
Methods inherited from SDN::Message
#==, #class_inspect, expected_response?, inherited, #inspect, parse, #serialize
Methods included from Helpers
#checksum, #from_number, #from_string, #is_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
#initialize(priority = nil, **kwargs) ⇒ PostLockStatus
Returns a new instance of PostLockStatus.
39 40 41 42 |
# File 'lib/sdn/message/ilt2/post.rb', line 39 def initialize(priority = nil, **kwargs) super(**kwargs) self.priority = priority end |
Instance Attribute Details
#priority ⇒ Object
0 for not locked
37 38 39 |
# File 'lib/sdn/message/ilt2/post.rb', line 37 def priority @priority end |
Instance Method Details
#params ⇒ Object
49 50 51 |
# File 'lib/sdn/message/ilt2/post.rb', line 49 def params transform_param(priority) end |
#parse(params) ⇒ Object
44 45 46 47 |
# File 'lib/sdn/message/ilt2/post.rb', line 44 def parse(params) super self.current_lock_priority = to_number(params[0]) end |