Class: DhtSensor::App

Inherits:
Object
  • Object
show all
Defined in:
lib/dht-sensor/app.rb

Instance Method Summary collapse

Instance Method Details

#run!Object



8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/dht-sensor/app.rb', line 8

def run!
  @options = parse_opts()
  validate_opts(@options)

  case @options[:command]
  when :read
    do_read()
  when :json
    do_json()
  when :loop
    do_loop()
  end
end