Class: SDN::Message::SetFactoryDefault
- Inherits:
-
SDN::Message
- Object
- SDN::Message
- SDN::Message::SetFactoryDefault
- Defined in:
- lib/sdn/message/set.rb
Constant Summary collapse
- MSG =
0x1f
- PARAMS_LENGTH =
1
- RESET =
{ all_settings: 0x00, group_addresses: 0x01, limits: 0x11, rotation: 0x12, rolling_speed: 0x13, ips: 0x15, locks: 0x17 }.freeze
Instance Attribute Summary collapse
-
#reset ⇒ Object
Returns the value of attribute reset.
Attributes inherited from SDN::Message
#ack_requested, #dest, #node_type, #src
Instance Method Summary collapse
-
#initialize(dest = nil, reset = :all_settings, **kwargs) ⇒ SetFactoryDefault
constructor
A new instance of SetFactoryDefault.
- #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(dest = nil, reset = :all_settings, **kwargs) ⇒ SetFactoryDefault
Returns a new instance of SetFactoryDefault.
18 19 20 21 22 |
# File 'lib/sdn/message/set.rb', line 18 def initialize(dest = nil, reset = :all_settings, **kwargs) kwargs[:dest] ||= dest super(**kwargs) self.reset = reset end |
Instance Attribute Details
#reset ⇒ Object
Returns the value of attribute reset.
16 17 18 |
# File 'lib/sdn/message/set.rb', line 16 def reset @reset end |