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, #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.
41 42 43 44 |
# File 'lib/sdn/message/ilt2/post.rb', line 41 def initialize(priority = nil, **kwargs) super(**kwargs) self.priority = priority end |
Instance Attribute Details
#priority ⇒ Object
0 for not locked
39 40 41 |
# File 'lib/sdn/message/ilt2/post.rb', line 39 def priority @priority end |
Instance Method Details
#params ⇒ Object
51 52 53 |
# File 'lib/sdn/message/ilt2/post.rb', line 51 def params transform_param(priority) end |
#parse(params) ⇒ Object
46 47 48 49 |
# File 'lib/sdn/message/ilt2/post.rb', line 46 def parse(params) super self.current_lock_priority = to_number(params[0]) end |