Class: NatureRemoE::Cli

Inherits:
Thor
  • Object
show all
Defined in:
lib/nature_remo_e/cli.rb

Instance Method Summary collapse

Methods inherited from Thor

exit_on_failure?, help

Instance Method Details

#allObject



11
12
13
14
15
16
17
# File 'lib/nature_remo_e/cli.rb', line 11

def all
  return puts echonetlite_properties.to_json if options['json']

  echonetlite_properties.each do |name, value|
    puts "#{name}: #{value}"
  end
end

#coefficientObject



20
21
22
# File 'lib/nature_remo_e/cli.rb', line 20

def coefficient
  puts echonetlite_properties[:coefficient]
end

#cumulative_electric_energy_effective_digitsObject



25
26
27
# File 'lib/nature_remo_e/cli.rb', line 25

def cumulative_electric_energy_effective_digits
  puts echonetlite_properties[:cumulative_electric_energy_effective_digits]
end

#cumulative_electric_energy_unitObject



35
36
37
# File 'lib/nature_remo_e/cli.rb', line 35

def cumulative_electric_energy_unit
  puts echonetlite_properties[:cumulative_electric_energy_unit]
end

#measured_instantaneousObject



45
46
47
# File 'lib/nature_remo_e/cli.rb', line 45

def measured_instantaneous
  puts echonetlite_properties[:measured_instantaneous]
end

#normal_direction_cumulative_electric_energyObject



30
31
32
# File 'lib/nature_remo_e/cli.rb', line 30

def normal_direction_cumulative_electric_energy
  puts echonetlite_properties[:normal_direction_cumulative_electric_energy]
end

#reverse_direction_cumulative_electric_energyObject



40
41
42
# File 'lib/nature_remo_e/cli.rb', line 40

def reverse_direction_cumulative_electric_energy
  puts echonetlite_properties[:reverse_direction_cumulative_electric_energy]
end