fetlife / rollout

Feature flippers.
MIT License
2.89k stars 211 forks source link

Feature request: to_hash method on Rollout class? #131

Open sarahbkim opened 6 years ago

sarahbkim commented 6 years ago

Something like this?

class Rollout
# ...
+  def to_hash
+    results = {}
+    features.each do |feature|
+      with_feature(feature) do |f|
+        results[feature] = f.to_hash
+      end
+    end
+    results
+  end
end