Permalink
Browse files

added to_hash method for data

  • Loading branch information...
1 parent bc13c13 commit 96142929d615563b9515977a5a653c94530bffdc @vgololobov vgololobov committed Mar 28, 2012
Showing with 9 additions and 0 deletions.
  1. +9 −0 lib/gattica/data_set.rb
@@ -48,6 +48,15 @@ def to_yaml
'points' => @points }.to_yaml
end
+ def to_hash
+ { :total_results => @total_results,
+ :start_index => @start_index,
+ :items_per_page => @items_per_page,
+ :start_date => @start_date,
+ :end_date => @end_date,
+ :points => @points }
+ end
+
end
end

0 comments on commit 9614292

Please sign in to comment.