class MediaWiktory::Wikipedia::Actions::Shortenurl

Shorten a long URL into a shorter one.

Usage:

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

URL to be shortened.

@param value [String] @return [self]

# File lib/mediawiktory/wikipedia/actions/shortenurl.rb, line 26
def url(value)
  merge(url: value.to_s)
end