Class: WavefrontOutput::Json

Inherits:
Base
  • Object
show all
Defined in:
lib/wavefront-cli/output/json.rb

Overview

Display as JSON

Instance Attribute Summary

Attributes inherited from Base

#cmd, #options, #resp

Instance Method Summary collapse

Methods inherited from Base

#command_class, #command_class_name, #command_file, #filtered_response, #initialize, #items_only, #my_format, #run

Constructor Details

This class inherits a constructor from WavefrontOutput::Base

Instance Method Details

#_runObject



10
11
12
# File 'lib/wavefront-cli/output/json.rb', line 10

def _run
  resp.to_json
end

#allow_items_only?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/wavefront-cli/output/json.rb', line 14

def allow_items_only?
  true
end