Class: SoracomCli::Stats
- Inherits:
-
Thor
- Object
- Thor
- SoracomCli::Stats
- Defined in:
- lib/soracom/cli.rb
Overview
Stats related commands
Instance Method Summary collapse
- #export_air_usage ⇒ Object
- #export_beam_usage ⇒ Object
- #get_air_usage ⇒ Object
- #get_beam_usage ⇒ Object
Instance Method Details
#export_air_usage ⇒ Object
287 288 289 290 291 |
# File 'lib/soracom/cli.rb', line 287 def export_air_usage client = Soracom::Client.new(profile:.profile) csv = client.export_air_usage(Hash[.map { |k, v| [k.to_sym, v] }]) puts csv end |
#export_beam_usage ⇒ Object
297 298 299 300 301 302 |
# File 'lib/soracom/cli.rb', line 297 def export_beam_usage client = Soracom::Client.new(profile:.profile) .delete('profile') csv = client.export_beam_usage(Hash[.map { |k, v| [k.to_sym, v] }]) puts csv end |