class DmtdVbmappData::ProtocolAreaResponse

Provides for the retrieving of VB-MAPP Protocol Area responses from the VB-MAPP Data Server.

Attributes

area[R]

@!attribute [r] area

@return [Symbol] the area of the question (e.g. :milestones, :barriers, :transitions, :eesa)
description[R]

@!attribute [r] text

@return [String] a description of the score to further help identify its application
score[R]

@!attribute [r] score

@return [Integer] the value to store as a score
text[R]

@!attribute [r] text

@return [String] the text to display describing this possible response

Public Class Methods

new(opts) click to toggle source

Creates an accessor for the VB-MAPP Area Question on the VB-MAPP Data Server

@note This method does not block, simply creates an accessor and returns

@option opts [String | Symbol] :area The vbmapp area of the group ('milestones', 'barriers', 'transitions', 'eesa') @option opts [Hash] :response_json The vbmapp question json for the question in the format described at

{https://datamtd.atlassian.net/wiki/pages/viewpage.action?pageId=18710549 /1/protocol/area_question - GET REST api - response}
# File lib/dmtd_vbmapp_data/protocol_area_response.rb, line 31
def initialize(opts)
  @area = opts.fetch(:area).to_sym

  response_json = opts.fetch(:response_json)
  @score = response_json[:score]
  @text = response_json[:text]
  @description = response_json[:description]
end