Class: SDN::Message::PostMotorLimits
- Inherits:
-
SDN::Message
- Object
- SDN::Message
- SDN::Message::PostMotorLimits
- Defined in:
- lib/sdn/messages/post.rb
Constant Summary collapse
- MSG =
0x31
- PARAMS_LENGTH =
4
Instance Attribute Summary collapse
-
#down_limit ⇒ Object
Returns the value of attribute down_limit.
-
#up_limit ⇒ Object
Returns the value of attribute up_limit.
Attributes inherited from SDN::Message
#ack_requested, #dest, #reserved, #src
Instance Method Summary collapse
Methods inherited from SDN::Message
#class_inspect, #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
#down_limit ⇒ Object
Returns the value of attribute down_limit.
49 50 51 |
# File 'lib/sdn/messages/post.rb', line 49 def down_limit @down_limit end |
#up_limit ⇒ Object
Returns the value of attribute up_limit.
49 50 51 |
# File 'lib/sdn/messages/post.rb', line 49 def up_limit @up_limit end |
Instance Method Details
#parse(params) ⇒ Object
51 52 53 54 55 |
# File 'lib/sdn/messages/post.rb', line 51 def parse(params) super self.up_limit = to_number(params[0..1], nillable: true) self.down_limit = to_number(params[2..3], nillable: true) end |