class Wavefront::Response::Ruby
Attributes
options[R]
response[R]
Public Class Methods
new(response, options={})
click to toggle source
# File lib/wavefront/response.rb, line 43 def initialize(response, options={}) @response = response @options = options JSON.parse(response).each_pair do |k,v| self.instance_variable_set("@#{k}", v) # Dynamically populate instance vars self.class.__send__(:attr_reader, k) # and set accessors end end