Class: SDN::Message::PostMotorRollingSpeed
- Inherits:
-
SDN::Message
- Object
- SDN::Message
- SDN::Message::PostMotorRollingSpeed
- Defined in:
- lib/sdn/messages/post.rb
Constant Summary collapse
- MSG =
0x33
- PARAMS_LENGTH =
6
Instance Attribute Summary collapse
-
#down_speed ⇒ Object
Returns the value of attribute down_speed.
-
#slow_speed ⇒ Object
Returns the value of attribute slow_speed.
-
#up_speed ⇒ Object
Returns the value of attribute up_speed.
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_speed ⇒ Object
Returns the value of attribute down_speed.
75 76 77 |
# File 'lib/sdn/messages/post.rb', line 75 def down_speed @down_speed end |
#slow_speed ⇒ Object
Returns the value of attribute slow_speed.
75 76 77 |
# File 'lib/sdn/messages/post.rb', line 75 def slow_speed @slow_speed end |
#up_speed ⇒ Object
Returns the value of attribute up_speed.
75 76 77 |
# File 'lib/sdn/messages/post.rb', line 75 def up_speed @up_speed end |
Instance Method Details
#parse(params) ⇒ Object
77 78 79 80 81 82 83 |
# File 'lib/sdn/messages/post.rb', line 77 def parse(params) super self.up_speed = to_number(params[0]) self.down_speed = to_number(params[1]) self.slow_speed = to_number(params[2]) # 3 ignored params end |