qaddy-client 0.0.6 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/qaddy_client/helpers.rb +3 -0
- data/lib/qaddy_client/version.rb +1 -1
- metadata +1 -1
data/lib/qaddy_client/helpers.rb
CHANGED
@@ -4,13 +4,16 @@ module QaddyClient
|
|
4
4
|
def instance_variables_to_hash
|
5
5
|
# TODO: just testing, remove for production
|
6
6
|
raise "crash me" if caller.length > 100
|
7
|
+
puts "BEG: instance_variables_to_hash"
|
7
8
|
|
8
9
|
h = {}
|
9
10
|
instance_variables.each do |e|
|
11
|
+
puts "MID: instance_variables_to_hash"
|
10
12
|
o = instance_variable_get e.to_sym
|
11
13
|
h[e[1..-1]] = (o.respond_to? :instance_variables_to_hash) ? o.instance_variables_to_hash : o;
|
12
14
|
end
|
13
15
|
h
|
16
|
+
puts "END: instance_variables_to_hash"
|
14
17
|
end
|
15
18
|
|
16
19
|
def to_json *a
|
data/lib/qaddy_client/version.rb
CHANGED