class MediaWiktory::Wikipedia::Actions::Spamblacklist

Validate one or more URLs against the SpamBlacklist.

Usage:

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

_url(value) click to toggle source

@private

# File lib/mediawiktory/wikipedia/actions/spamblacklist.rb, line 31
def _url(value)
  merge(url: value.to_s, replace: false)
end
url(*values) click to toggle source

URLs to validate against the blacklist.

@param values [Array<String>] @return [self]

# File lib/mediawiktory/wikipedia/actions/spamblacklist.rb, line 26
def url(*values)
  values.inject(self) { |res, val| res._url(val) }
end