Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added to_hash method for data

  • Loading branch information...
commit bc13c13680495af269c7c93aeec8e4ae77b9a496 1 parent b22bf3b
@vgololobov vgololobov authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.