Sha256: 617524122f55981eb1e500d4cca0c3eef8775b4f3929e81f3d3fd39f452cda9d
Contents?: true
Size: 1.52 KB
Versions: 4
Compression:
Stored size: 1.52 KB
Contents
# frozen_string_literal: true module MediaWiktory::Wikipedia module Actions # 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. # class ScribuntoConsole < MediaWiktory::Wikipedia::Actions::Get # The title of the module to test. # # @param value [String] # @return [self] def title(value) merge(title: value.to_s) end # The new content of the module. # # @param value [String] # @return [self] def content(value) merge(content: value.to_s) end # Session token. # # @param value [Integer] # @return [self] def session(value) merge(session: value.to_s) end # The next line to evaluate as a script. # # @param value [String] # @return [self] def question(value) merge(question: value.to_s) end # Set to clear the current session state. # # @return [self] def clear() merge(clear: 'true') end end end end
Version data entries
4 entries across 4 versions & 1 rubygems