lib/appstats/sub_result.rb in appstats-0.19.1 vs lib/appstats/sub_result.rb in appstats-0.19.2
- old
+ new
@@ -15,9 +15,15 @@
end
def total_count_to_s(data = {})
Appstats::Result.calculate_count_to_s(total_count,data)
end
+
+ def context_filter_to_s
+ return "-- N/A --" if context_filter.nil?
+ return "-- No Value --" if context_filter.empty?
+ context_filter
+ end
def ==(o)
o.class == self.class && o.send(:state) == state
end
\ No newline at end of file