class MediaWiktory::Wikipedia::Actions::ScribuntoConsole
Internal module for servicing XHR requests from the Scribunto console.
Usage:
“`ruby api.scribunto-console.title(value).perform # returns string with raw output # or api.scribunto-console.title(value).response # returns output parsed and wrapped into Response
object “`
See {Base} for generic explanation of working with MediaWiki actions and {MediaWiktory::Wikipedia::Response} for working with action responses.
All action's parameters are documented as its public methods, see below.
Public Instance Methods
Set to clear the current session state.
@return [self]
# File lib/mediawiktory/wikipedia/actions/scribunto-console.rb, line 57 def clear() merge(clear: 'true') end
The new content of the module.
@param value [String] @return [self]
# File lib/mediawiktory/wikipedia/actions/scribunto-console.rb, line 34 def content(value) merge(content: value.to_s) end
The next line to evaluate as a script.
@param value [String] @return [self]
# File lib/mediawiktory/wikipedia/actions/scribunto-console.rb, line 50 def question(value) merge(question: value.to_s) end
Session token.
@param value [Integer] @return [self]
# File lib/mediawiktory/wikipedia/actions/scribunto-console.rb, line 42 def session(value) merge(session: value.to_s) end
The title of the module to test.
@param value [String] @return [self]
# File lib/mediawiktory/wikipedia/actions/scribunto-console.rb, line 26 def title(value) merge(title: value.to_s) end