From c00af9c98126b09818a0f9ffb7bd4bc41eca803e Mon Sep 17 00:00:00 2001 From: Stormwind Date: Wed, 18 Feb 2015 22:20:19 +0100 Subject: [PATCH] Frist step to create the heatmap Read in the JSON data, works so far --- lib/rubella.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/rubella.rb b/lib/rubella.rb index c19b694..02bb439 100644 --- a/lib/rubella.rb +++ b/lib/rubella.rb @@ -46,6 +46,14 @@ module Rubella end + def create_from_string data + @input.string data + end + + def create_from_file file_name + @input.file file_name + end + def input_json require "rubella/input/json" Input::JSON