Class: PupilfirstXapi::Objects::SurveyStart
- Inherits:
-
Object
- Object
- PupilfirstXapi::Objects::SurveyStart
- Defined in:
- lib/pupilfirst_xapi/objects/survey_start.rb
Instance Method Summary collapse
Instance Method Details
#call(survey, uri_for) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/pupilfirst_xapi/objects/survey_start.rb', line 4 def call(survey, uri_for) target_uri = uri_for.call(survey) Builder.new( id: target_uri, type: 'http://adlnet.gov/expapi/activities/assessment', name: survey.name, description: survey.external_name ).with_extension( 'http://id.tincanapi.com/extension/target', survey.slug ).call end |