Class: NatureRemoE::Cli
Instance Method Summary collapse
- #all ⇒ Object
- #coefficient ⇒ Object
- #cumulative_electric_energy_effective_digits ⇒ Object
- #cumulative_electric_energy_unit ⇒ Object
- #measured_instantaneous ⇒ Object
- #normal_direction_cumulative_electric_energy ⇒ Object
- #reverse_direction_cumulative_electric_energy ⇒ Object
Methods inherited from Thor
Instance Method Details
#all ⇒ Object
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 ['json'] echonetlite_properties.each do |name, value| puts "#{name}: #{value}" end end |
#coefficient ⇒ Object
20 21 22 |
# File 'lib/nature_remo_e/cli.rb', line 20 def coefficient puts echonetlite_properties[:coefficient] end |
#cumulative_electric_energy_effective_digits ⇒ Object
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_unit ⇒ Object
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_instantaneous ⇒ Object
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_energy ⇒ Object
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_energy ⇒ Object
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 |