Class: IMS::LTI::Models::RestService
- Defined in:
- lib/ims/lti/models/rest_service.rb
Constant Summary collapse
- TYPE =
'RestService'
Constants inherited from LTIModel
LTIModel::LTI_VERSION_2P0, LTIModel::LTI_VERSION_2P1
Instance Method Summary collapse
- #actions ⇒ Object
- #formats ⇒ Object
-
#initialize(attributes = {}) ⇒ RestService
constructor
A new instance of RestService.
- #profile ⇒ Object
Methods inherited from LTIModel
add_attribute, add_attributes, #as_json, #attributes, #attributes=, from_json, #from_json, inherit_attributes, inherited, #method_missing, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ RestService
Returns a new instance of RestService.
9 10 11 12 |
# File 'lib/ims/lti/models/rest_service.rb', line 9 def initialize(attributes = {}) @type = TYPE super(attributes) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class IMS::LTI::Models::LTIModel
Instance Method Details
#actions ⇒ Object
21 22 23 |
# File 'lib/ims/lti/models/rest_service.rb', line 21 def actions [*action] end |
#formats ⇒ Object
25 26 27 |
# File 'lib/ims/lti/models/rest_service.rb', line 25 def formats [*format] end |
#profile ⇒ Object
14 15 16 17 18 19 |
# File 'lib/ims/lti/models/rest_service.rb', line 14 def profile RestServiceProfile.new( service: endpoint, action: action ) end |