class MediaWiktory::Wikipedia::Actions::Thank

Send a thank-you notification to an editor.

Usage:

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

rev(value) click to toggle source

Revision ID to thank someone for.

@param value [Integer] @return [self]

# File lib/mediawiktory/wikipedia/actions/thank.rb, line 26
def rev(value)
  merge(rev: value.to_s)
end
source(value) click to toggle source

A short string describing the source of the request, for example diff or history.

@param value [String] @return [self]

# File lib/mediawiktory/wikipedia/actions/thank.rb, line 42
def source(value)
  merge(source: 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/thank.rb, line 34
def token(value)
  merge(token: value.to_s)
end