lib/dmtd_vbmapp_data/assessment_report.rb
# Returns the JSON for the IEP report. See {https://datamtd.atlassian.net/wiki/pages/viewpage.action?pageId=19267590 /1/assessment_report/iep - GET} for the
# full format.
#
# The following transformations are made to the server JSON:
#
# * The top-level 'response' node is removed
# * All variables are substituted according to +resolver+
# * All conditionals are evaluated
#    * Only paragraphs with successful conditions are retained
#    * All Condition nodes are stripped
#    * All Condition_Comment nodes are stripped
#
# @note This method *will* block on the first access to retrieve the
#    data from the server.
#
# @note The keys in the JSON hash will be symbols and *not* strings.
Returns the JSON for the IEP report.

The following transformations are made to the server JSON.

The top-level 'response' node is removed
All variables are substituted according to +resolver+
All conditionals are evaluated
Only paragraphs with successful conditions are retained
All Condition nodes are stripped
All Condition_Comment nodes are stripped
Returns the JSON for the IEP report . The following transformations are made to the server JSON . The top - level ' response ' node is removed All variables are substituted according to + resolver + All conditionals are evaluated Only paragraphs with successful conditions are retained All Condition nodes are stripped All Condition_Comment nodes are stripped
def iep
      result = retrieve_responses_json
      if result.is_a?(Array)
        result = process_report json_array:result
      end
      result
    end
def iep result = retrieve_responses_json if result . is_a? ( Array ) result = process_report json_array : result end result end
Returns the JSON for the IEP report.
Returns the JSON for the IEP report .
note
This method *will* block on the first access to retrieve the data from the server.
This method * will * block on the first access to retrieve the data from the server .
note
The keys in the JSON hash will be symbols and *not* strings.
The keys in the JSON hash will be symbols and * not * strings .