class MediaWiktory::Wikipedia::Actions::Review

Review a revision by approving or de-approving it.

Usage:

“`ruby api.review.revid(value).perform # returns string with raw output # or api.review.revid(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

comment(value) click to toggle source

Comment for the review.

@param value [String] @return [self]

# File lib/mediawiktory/wikipedia/actions/review.rb, line 42
def comment(value)
  merge(comment: value.to_s)
end
revid(value) click to toggle source

The revision ID for which to set the flags.

@param value [String] @return [self]

# File lib/mediawiktory/wikipedia/actions/review.rb, line 26
def revid(value)
  merge(revid: 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/review.rb, line 34
def token(value)
  merge(token: value.to_s)
end
unapprove() click to toggle source

If set, revision will be unapproved rather than approved.

@return [self]

# File lib/mediawiktory/wikipedia/actions/review.rb, line 49
def unapprove()
  merge(unapprove: 'true')
end