Add documentation and TODOs for JSON input
This commit is contained in:
parent
7a42644b3b
commit
3bfb03c29c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue