class MediaWiktory::Wikipedia::Actions::Feedrecentchanges

Returns a recent changes feed.

Usage:

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

_feedformat(value) click to toggle source

@private

Calls superclass method
# File lib/mediawiktory/wikipedia/actions/feedrecentchanges.rb, line 31
def _feedformat(value)
  defined?(super) && super || ["rss", "atom"].include?(value.to_s) && merge(feedformat: value.to_s)
end
_namespace(value) click to toggle source

@private

Calls superclass method
# File lib/mediawiktory/wikipedia/actions/feedrecentchanges.rb, line 44
def _namespace(value)
  defined?(super) && super || ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "100", "101", "108", "109", "118", "119", "446", "447", "710", "711", "828", "829", "2300", "2301", "2302", "2303"].include?(value.to_s) && merge(namespace: value.to_s)
end
associated() click to toggle source

Include associated (talk or main) namespace.

@return [self]

# File lib/mediawiktory/wikipedia/actions/feedrecentchanges.rb, line 58
def associated()
  merge(associated: 'true')
end
days(value) click to toggle source

Days to limit the results to.

@param value [Integer] @return [self]

# File lib/mediawiktory/wikipedia/actions/feedrecentchanges.rb, line 66
def days(value)
  merge(days: value.to_s)
end
feedformat(value) click to toggle source

The format of the feed.

@param value [String] One of “rss”, “atom”. @return [self]

# File lib/mediawiktory/wikipedia/actions/feedrecentchanges.rb, line 26
def feedformat(value)
  _feedformat(value) or fail ArgumentError, "Unknown value for feedformat: #{value}"
end
from(value) click to toggle source

Show changes since then.

@param value [Time] @return [self]

# File lib/mediawiktory/wikipedia/actions/feedrecentchanges.rb, line 82
def from(value)
  merge(from: value.iso8601)
end
hideanons() click to toggle source

Hide changes made by anonymous users.

@return [self]

# File lib/mediawiktory/wikipedia/actions/feedrecentchanges.rb, line 103
def hideanons()
  merge(hideanons: 'true')
end
hidebots() click to toggle source

Hide changes made by bots.

@return [self]

# File lib/mediawiktory/wikipedia/actions/feedrecentchanges.rb, line 96
def hidebots()
  merge(hidebots: 'true')
end
hidecategorization() click to toggle source

Hide category membership changes.

@return [self]

# File lib/mediawiktory/wikipedia/actions/feedrecentchanges.rb, line 131
def hidecategorization()
  merge(hidecategorization: 'true')
end
hideliu() click to toggle source

Hide changes made by registered users.

@return [self]

# File lib/mediawiktory/wikipedia/actions/feedrecentchanges.rb, line 110
def hideliu()
  merge(hideliu: 'true')
end
hideminor() click to toggle source

Hide minor changes.

@return [self]

# File lib/mediawiktory/wikipedia/actions/feedrecentchanges.rb, line 89
def hideminor()
  merge(hideminor: 'true')
end
hidemyself() click to toggle source

Hide changes made by the current user.

@return [self]

# File lib/mediawiktory/wikipedia/actions/feedrecentchanges.rb, line 124
def hidemyself()
  merge(hidemyself: 'true')
end
hidepatrolled() click to toggle source

Hide patrolled changes.

@return [self]

# File lib/mediawiktory/wikipedia/actions/feedrecentchanges.rb, line 117
def hidepatrolled()
  merge(hidepatrolled: 'true')
end
invert() click to toggle source

All namespaces but the selected one.

@return [self]

# File lib/mediawiktory/wikipedia/actions/feedrecentchanges.rb, line 51
def invert()
  merge(invert: 'true')
end
limit(value) click to toggle source

Maximum number of results to return.

@param value [Integer] @return [self]

# File lib/mediawiktory/wikipedia/actions/feedrecentchanges.rb, line 74
def limit(value)
  merge(limit: value.to_s)
end
namespace(value) click to toggle source

Namespace to limit the results to.

@param value [String] One of “0”, “1”, “2”, “3”, “4”, “5”, “6”, “7”, “8”, “9”, “10”, “11”, “12”, “13”, “14”, “15”, “100”, “101”, “108”, “109”, “118”, “119”, “446”, “447”, “710”, “711”, “828”, “829”, “2300”, “2301”, “2302”, “2303”. @return [self]

# File lib/mediawiktory/wikipedia/actions/feedrecentchanges.rb, line 39
def namespace(value)
  _namespace(value) or fail ArgumentError, "Unknown value for namespace: #{value}"
end
showlinkedto() click to toggle source

Show changes on pages linked to the selected page instead.

@return [self]

# File lib/mediawiktory/wikipedia/actions/feedrecentchanges.rb, line 154
def showlinkedto()
  merge(showlinkedto: 'true')
end
tagfilter(value) click to toggle source

Filter by tag.

@param value [String] @return [self]

# File lib/mediawiktory/wikipedia/actions/feedrecentchanges.rb, line 139
def tagfilter(value)
  merge(tagfilter: value.to_s)
end
target(value) click to toggle source

Show only changes on pages linked from this page.

@param value [String] @return [self]

# File lib/mediawiktory/wikipedia/actions/feedrecentchanges.rb, line 147
def target(value)
  merge(target: value.to_s)
end