Method: OutputState#initialize
- Defined in:
- lib/telegrams/commands/direct/output_state.rb
#initialize(options = {}) ⇒ OutputState
Returns a new instance of OutputState.
117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 |
# File 'lib/telegrams/commands/direct/output_state.rb', line 117 def initialize(={}) = { :port => :all, :power => 0, :mode_flags => 0, :regulation_mode => :idle, :turn_ratio => 0, :run_state => :idle, :tacho_limit => 0 }.merge() .keys.each do |key| self.send("#{key}=", [key]) end end |