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}
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’ 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
134 135 136 |
# File 'lib/ims/lti/extensions/outcome_data.rb', line 134 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’ and ‘text’ are valid
tc.outcome_data_values_accepted(['url', 'text'])
tc.outcome_data_valued_accepted("url,text")
125 126 127 128 129 130 131 |
# File 'lib/ims/lti/extensions/outcome_data.rb', line 125 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
139 140 141 |
# File 'lib/ims/lti/extensions/outcome_data.rb', line 139 def support_outcome_data! self.outcome_data_values_accepted = OUTCOME_DATA_TYPES end |