Class: DmtdVbmappData::ProtocolAreaSkill

Inherits:
Object
  • Object
show all
Defined in:
lib/dmtd_vbmapp_data/protocol_area_skill.rb

Overview

Provides for the retrieving of VB-MAPP Area Question Skill on the VB-MAPP Data Server.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(opts) ⇒ ProtocolAreaSkill

Note:

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

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

Parameters:

  • opts (Hash)

    a customizable set of options

Options Hash (opts):



26
27
28
29
30
31
32
# File 'lib/dmtd_vbmapp_data/protocol_area_skill.rb', line 26

def initialize(opts)
  question_json = opts.fetch(:question_json)

  @id = question_json[:id]
  @supporting = question_json[:supporting]
  @skill = question_json[:skill]
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



10
11
12
# File 'lib/dmtd_vbmapp_data/protocol_area_skill.rb', line 10

def id
  @id
end

#skillObject (readonly)

Returns the value of attribute skill.



18
19
20
# File 'lib/dmtd_vbmapp_data/protocol_area_skill.rb', line 18

def skill
  @skill
end

#supportingObject (readonly)

Returns the value of attribute supporting.



14
15
16
# File 'lib/dmtd_vbmapp_data/protocol_area_skill.rb', line 14

def supporting
  @supporting
end