class QResponse

Attributes

debug[RW]
results[RW]

Public Class Methods

new(s) click to toggle source
# File lib/zephyr_client/base/q_response.rb, line 8
def initialize(s)
  @results = s
  @debug=false
end

Public Instance Methods

dump() click to toggle source
# File lib/zephyr_client/base/q_response.rb, line 23
def dump()
  h = to_json

  if h.is_a?(Array)
    puts __FILE__ + (__LINE__).to_s +  " SIZE : #{h.length.to_s}"
    i=0
    h.each do |arr|
      puts "#{i}. #{arr}"
      i+=1
    end
  end
end
to_json() click to toggle source
# File lib/zephyr_client/base/q_response.rb, line 13
def to_json
  rc=nil
  begin
    rc = JSON.parse(@results.body)
  rescue => ex
    ;
  end
  rc
end