Class: WavefrontOutput::Ruby

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

Overview

Display as a raw Ruby object

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

Constructor Details

This class inherits a constructor from WavefrontOutput::Base

Instance Method Details

#_runObject



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

def _run
  resp
end

#allow_items_only?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'lib/wavefront-cli/output/ruby.rb', line 18

def allow_items_only?
  true
end

#runObject



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

def run
  p _run
end