class MediaWiktory::Wikipedia::Actions::Patrol
Patrol
a page or revision.
Usage:
“`ruby api.patrol.rcid(value).perform # returns string with raw output # or api.patrol.rcid(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
rcid(value)
click to toggle source
Recentchanges ID to patrol.
@param value [Integer] @return [self]
# File lib/mediawiktory/wikipedia/actions/patrol.rb, line 26 def rcid(value) merge(rcid: value.to_s) end
revid(value)
click to toggle source
Revision ID to patrol.
@param value [Integer] @return [self]
# File lib/mediawiktory/wikipedia/actions/patrol.rb, line 34 def revid(value) merge(revid: value.to_s) end
token(value)
click to toggle source
A “patrol” token retrieved from action=query&meta=tokens
@param value [String] @return [self]
# File lib/mediawiktory/wikipedia/actions/patrol.rb, line 55 def token(value) merge(token: value.to_s) end