Module: IMS::LTI::Extensions::OutcomeData::ToolConsumer
- Includes:
- ExtensionBase, Base
- Defined in:
- lib/ims/lti/extensions/outcome_data.rb
Constant Summary collapse
- OUTCOME_DATA_TYPES =
%w{text url lti_launch_url submitted_at}
Instance Method Summary collapse
-
#outcome_data_values_accepted ⇒ Object
a comma-separated string of the supported outcome data types.
-
#outcome_data_values_accepted=(val) ⇒ Object
a list of the outcome data types accepted, currently only ‘url’, ‘submitted_at’ and ‘text’ are valid.
-
#support_outcome_data! ⇒ Object
convenience method for setting support for all current outcome data types.
Methods included from Base
Methods included from ExtensionBase
#outcome_request_extensions, #outcome_response_extensions
Instance Method Details
#outcome_data_values_accepted ⇒ Object
a comma-separated string of the supported outcome data types
145 146 147 |
# File 'lib/ims/lti/extensions/outcome_data.rb', line 145 def outcome_data_values_accepted get_ext_param('outcome_data_values_accepted') end |
#outcome_data_values_accepted=(val) ⇒ Object
a list of the outcome data types accepted, currently only ‘url’, ‘submitted_at’ and ‘text’ are valid
tc.outcome_data_values_accepted(['url', 'text'])
tc.outcome_data_valued_accepted("url,text")
136 137 138 139 140 141 142 |
# File 'lib/ims/lti/extensions/outcome_data.rb', line 136 def outcome_data_values_accepted=(val) if val.is_a? Array val = val.join(',') end set_ext_param('outcome_data_values_accepted', val) end |
#support_outcome_data! ⇒ Object
convenience method for setting support for all current outcome data types
150 151 152 |
# File 'lib/ims/lti/extensions/outcome_data.rb', line 150 def support_outcome_data! self.outcome_data_values_accepted = OUTCOME_DATA_TYPES end |