Class: MediaWiktory::Wikipedia::Actions::Feedrecentchanges
- Defined in:
- lib/mediawiktory/wikipedia/actions/feedrecentchanges.rb
Overview
Returns a recent changes feed.
Usage:
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 Response for working with action responses.
All action's parameters are documented as its public methods, see below.
Instance Method Summary collapse
-
#associated ⇒ self
Include associated (talk or main) namespace.
-
#days(value) ⇒ self
Days to limit the results to.
-
#feedformat(value) ⇒ self
The format of the feed.
-
#from(value) ⇒ self
Show changes since then.
-
#hideanons ⇒ self
Hide changes made by anonymous users.
-
#hidebots ⇒ self
Hide changes made by bots.
-
#hidecategorization ⇒ self
Hide category membership changes.
-
#hideliu ⇒ self
Hide changes made by registered users.
-
#hideminor ⇒ self
Hide minor changes.
-
#hidemyself ⇒ self
Hide changes made by the current user.
-
#hidepatrolled ⇒ self
Hide patrolled changes.
-
#invert ⇒ self
All namespaces but the selected one.
-
#limit(value) ⇒ self
Maximum number of results to return.
-
#namespace(value) ⇒ self
Namespace to limit the results to.
-
#showlinkedto ⇒ self
Show changes on pages linked to the selected page instead.
-
#tagfilter(value) ⇒ self
Filter by tag.
-
#target(value) ⇒ self
Show only changes on pages linked from this page.
Methods inherited from Get
Methods inherited from Base
#inspect, #merge, #name, #perform, #response, #to_h, #to_param, #to_url
Methods included from GlobalParams
#assert, #assertuser, #centralauthtoken, #curtimestamp, #errorformat, #errorlang, #errorsuselocal, #format, #maxage, #maxlag, #origin, #requestid, #responselanginfo, #servedby, #smaxage, #uselang
Instance Method Details
#associated ⇒ self
Include associated (talk or main) namespace.
58 59 60 |
# File 'lib/mediawiktory/wikipedia/actions/feedrecentchanges.rb', line 58 def associated() merge(associated: 'true') end |
#days(value) ⇒ self
Days to limit the results to.
66 67 68 |
# File 'lib/mediawiktory/wikipedia/actions/feedrecentchanges.rb', line 66 def days(value) merge(days: value.to_s) end |
#feedformat(value) ⇒ self
The format of the feed.
26 27 28 |
# 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) ⇒ self
Show changes since then.
82 83 84 |
# File 'lib/mediawiktory/wikipedia/actions/feedrecentchanges.rb', line 82 def from(value) merge(from: value.iso8601) end |
#hideanons ⇒ self
Hide changes made by anonymous users.
103 104 105 |
# File 'lib/mediawiktory/wikipedia/actions/feedrecentchanges.rb', line 103 def hideanons() merge(hideanons: 'true') end |
#hidebots ⇒ self
Hide changes made by bots.
96 97 98 |
# File 'lib/mediawiktory/wikipedia/actions/feedrecentchanges.rb', line 96 def hidebots() merge(hidebots: 'true') end |
#hidecategorization ⇒ self
Hide category membership changes.
131 132 133 |
# File 'lib/mediawiktory/wikipedia/actions/feedrecentchanges.rb', line 131 def hidecategorization() merge(hidecategorization: 'true') end |
#hideliu ⇒ self
Hide changes made by registered users.
110 111 112 |
# File 'lib/mediawiktory/wikipedia/actions/feedrecentchanges.rb', line 110 def hideliu() merge(hideliu: 'true') end |
#hideminor ⇒ self
Hide minor changes.
89 90 91 |
# File 'lib/mediawiktory/wikipedia/actions/feedrecentchanges.rb', line 89 def hideminor() merge(hideminor: 'true') end |
#hidemyself ⇒ self
Hide changes made by the current user.
124 125 126 |
# File 'lib/mediawiktory/wikipedia/actions/feedrecentchanges.rb', line 124 def hidemyself() merge(hidemyself: 'true') end |
#hidepatrolled ⇒ self
Hide patrolled changes.
117 118 119 |
# File 'lib/mediawiktory/wikipedia/actions/feedrecentchanges.rb', line 117 def hidepatrolled() merge(hidepatrolled: 'true') end |
#invert ⇒ self
All namespaces but the selected one.
51 52 53 |
# File 'lib/mediawiktory/wikipedia/actions/feedrecentchanges.rb', line 51 def invert() merge(invert: 'true') end |
#limit(value) ⇒ self
Maximum number of results to return.
74 75 76 |
# File 'lib/mediawiktory/wikipedia/actions/feedrecentchanges.rb', line 74 def limit(value) merge(limit: value.to_s) end |
#namespace(value) ⇒ self
Namespace to limit the results to.
39 40 41 |
# File 'lib/mediawiktory/wikipedia/actions/feedrecentchanges.rb', line 39 def namespace(value) _namespace(value) or fail ArgumentError, "Unknown value for namespace: #{value}" end |
#showlinkedto ⇒ self
Show changes on pages linked to the selected page instead.
154 155 156 |
# File 'lib/mediawiktory/wikipedia/actions/feedrecentchanges.rb', line 154 def showlinkedto() merge(showlinkedto: 'true') end |
#tagfilter(value) ⇒ self
Filter by tag.
139 140 141 |
# File 'lib/mediawiktory/wikipedia/actions/feedrecentchanges.rb', line 139 def tagfilter(value) merge(tagfilter: value.to_s) end |
#target(value) ⇒ self
Show only changes on pages linked from this page.
147 148 149 |
# File 'lib/mediawiktory/wikipedia/actions/feedrecentchanges.rb', line 147 def target(value) merge(target: value.to_s) end |