Class: Moodle::Protocol::Rest
- Inherits:
-
Object
- Object
- Moodle::Protocol::Rest
- Defined in:
- lib/moodle/protocols/rest.rb
Instance Method Summary collapse
-
#request(url, params = {}) ⇒ Object
Return must be sanitized oh html as debug on moodle site can be active.
Instance Method Details
#request(url, params = {}) ⇒ Object
Return must be sanitized oh html as debug on moodle site can be active
8 9 10 |
# File 'lib/moodle/protocols/rest.rb', line 8 def request(url, params={}) Sanitize.clean(RestClient.get(url, :params => params), :remove_contents => true) end |