Permalink
Browse files

added to_hash method for data

  • Loading branch information...
1 parent b22bf3b commit bc13c13680495af269c7c93aeec8e4ae77b9a496 @vgololobov vgololobov committed Mar 28, 2012
Showing with 9 additions and 0 deletions.
  1. +9 −0 lib/gattica/data_point.rb
View
9 lib/gattica/data_point.rb
@@ -55,6 +55,15 @@ def to_yaml
'dimensions' => @dimensions,
'metrics' => @metrics }.to_yaml
end
+
+ def to_hash
+ { :id => @id,
+ :updated => @updated,
+ :title => @title,
+ :dimensions => @dimensions,
+ :metrics => @metrics }
+ end
+
end

0 comments on commit bc13c13

Please sign in to comment.