class WavefrontCsvOutput::Base
Standard output template
Attributes
options[R]
resp[R]
Public Class Methods
new(resp, options)
click to toggle source
# File lib/wavefront-cli/output/csv/base.rb, line 12 def initialize(resp, options) @resp = resp @options = options post_initialize if respond_to?(:post_initialize) end
Public Instance Methods
check_query_response()
click to toggle source
# File lib/wavefront-cli/output/csv/base.rb, line 22 def check_query_response return true unless resp[:timeseries].nil? puts 'No points match query.' exit 0 rescue StandardError raise WavefrontCli::Exception::UnparseableResponse end
run()
click to toggle source
# File lib/wavefront-cli/output/csv/base.rb, line 18 def run puts _run end