0
0
Fork 0

Add documentation and TODOs for JSON input

This commit is contained in:
Stormwind 2015-02-22 22:40:52 +01:00
parent 7a42644b3b
commit 3bfb03c29c
1 changed files with 6 additions and 0 deletions

View File

@ -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