lib/fiveruns/dash/trace.rb in fiveruns-dash-ruby-0.8.3 vs lib/fiveruns/dash/trace.rb in fiveruns-dash-ruby-0.8.4
- old
+ new
@@ -25,14 +25,14 @@
metric.key.merge({:value => value, :contexts => contexts})
)
end
end
- def to_json
+ def to_fjson
{ :context => context,
:data => (@data || {})
- }.to_json
+ }.to_fjson
end
private
def validate!
@@ -49,14 +49,14 @@
def children
@children ||= []
end
- def to_json
+ def to_fjson
{
:metrics => metrics,
:children => children,
- }.to_json
+ }.to_fjson
end
end
end
\ No newline at end of file