Class: SDN::Message::PostMotorRollingSpeed
- Inherits:
-
SDN::Message
- Object
- SDN::Message
- SDN::Message::PostMotorRollingSpeed
- Defined in:
- lib/sdn/message/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, #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
#down_speed ⇒ Object
Returns the value of attribute down_speed.
123 124 125 |
# File 'lib/sdn/message/post.rb', line 123 def down_speed @down_speed end |
#slow_speed ⇒ Object
Returns the value of attribute slow_speed.
123 124 125 |
# File 'lib/sdn/message/post.rb', line 123 def slow_speed @slow_speed end |
#up_speed ⇒ Object
Returns the value of attribute up_speed.
123 124 125 |
# File 'lib/sdn/message/post.rb', line 123 def up_speed @up_speed end |
Instance Method Details
#parse(params) ⇒ Object
125 126 127 128 129 130 131 |
# File 'lib/sdn/message/post.rb', line 125 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 |