Class: Qti::V2::Models::ScoringData

Inherits:
Struct
  • Object
show all
Defined in:
lib/qti/v2/models/scoring_data.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(values, type, options = {}) ⇒ ScoringData

Returns a new instance of ScoringData.



5
6
7
# File 'lib/qti/v2/models/scoring_data.rb', line 5

def initialize(values, type, options = {})
  super(values, type, options[:id], options[:case], options[:question_id], options[:questions_ids])
end

Instance Attribute Details

#caseObject

Returns the value of attribute case

Returns:

  • (Object)

    the current value of case



4
5
6
# File 'lib/qti/v2/models/scoring_data.rb', line 4

def case
  @case
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



4
5
6
# File 'lib/qti/v2/models/scoring_data.rb', line 4

def id
  @id
end

#question_idObject

Returns the value of attribute question_id

Returns:

  • (Object)

    the current value of question_id



4
5
6
# File 'lib/qti/v2/models/scoring_data.rb', line 4

def question_id
  @question_id
end

#questions_idsObject

Returns the value of attribute questions_ids

Returns:

  • (Object)

    the current value of questions_ids



4
5
6
# File 'lib/qti/v2/models/scoring_data.rb', line 4

def questions_ids
  @questions_ids
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



4
5
6
# File 'lib/qti/v2/models/scoring_data.rb', line 4

def type
  @type
end

#valuesObject

Returns the value of attribute values

Returns:

  • (Object)

    the current value of values



4
5
6
# File 'lib/qti/v2/models/scoring_data.rb', line 4

def values
  @values
end