class MediaWiktory::Wikipedia::Actions::Unblock
Unblock
a user.
Usage:
“`ruby api.unblock.id(value).perform # returns string with raw output # or api.unblock.id(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
ID of the block to unblock (obtained through list=blocks). Cannot be used together with user or userid.
@param value [Integer] @return [self]
# File lib/mediawiktory/wikipedia/actions/unblock.rb, line 26 def id(value) merge(id: value.to_s) end
Reason for unblock.
@param value [String] @return [self]
# File lib/mediawiktory/wikipedia/actions/unblock.rb, line 50 def reason(value) merge(reason: value.to_s) end
A “csrf” token retrieved from action=query&meta=tokens
@param value [String] @return [self]
# File lib/mediawiktory/wikipedia/actions/unblock.rb, line 71 def token(value) merge(token: value.to_s) end
Username, IP address or IP address range to unblock. Cannot be used together with id or userid.
@param value [String] @return [self]
# File lib/mediawiktory/wikipedia/actions/unblock.rb, line 34 def user(value) merge(user: value.to_s) end
User ID to unblock. Cannot be used together with id or user.
@param value [Integer] @return [self]
# File lib/mediawiktory/wikipedia/actions/unblock.rb, line 42 def userid(value) merge(userid: value.to_s) end