From 3bfb03c29c96e47c044965b624c5dfb06d74bbdf Mon Sep 17 00:00:00 2001 From: Stormwind Date: Sun, 22 Feb 2015 22:40:52 +0100 Subject: [PATCH] Add documentation and TODOs for JSON input --- lib/rubella/input/json.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/rubella/input/json.rb b/lib/rubella/input/json.rb index e3962fb..e71db0d 100644 --- a/lib/rubella/input/json.rb +++ b/lib/rubella/input/json.rb @@ -3,7 +3,13 @@ require 'json' module Rubella module Input + # Gets data in JSON formate and translate it into a Ruby readable form to + # make it possible to handle the data. # + # TODO The validation of the data should happen here + # Check if data is array, with subarrays. Check, that all sub array have + # the same size. Check that all the content are numeric values between 0 + # and 100. # class JSON attr_reader :data