class MediaWiktory::Wikipedia::Actions::Filerevert
Revert a file to an old version.
Usage:
“`ruby api.filerevert.filename(value).perform # returns string with raw output # or api.filerevert.filename(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
archivename(value)
click to toggle source
Archive name of the revision to revert to.
@param value [String] @return [self]
# File lib/mediawiktory/wikipedia/actions/filerevert.rb, line 42 def archivename(value) merge(archivename: value.to_s) end
comment(value)
click to toggle source
Upload
comment.
@param value [String] @return [self]
# File lib/mediawiktory/wikipedia/actions/filerevert.rb, line 34 def comment(value) merge(comment: value.to_s) end
filename(value)
click to toggle source
Target filename, without the File: prefix.
@param value [String] @return [self]
# File lib/mediawiktory/wikipedia/actions/filerevert.rb, line 26 def filename(value) merge(filename: value.to_s) end
token(value)
click to toggle source
A “csrf” token retrieved from action=query&meta=tokens
@param value [String] @return [self]
# File lib/mediawiktory/wikipedia/actions/filerevert.rb, line 50 def token(value) merge(token: value.to_s) end