Class: MediaWiktory::Wikipedia::Actions::Pagetriagestats
- Defined in:
- lib/mediawiktory/wikipedia/actions/pagetriagestats.rb
Overview
Get the stats for page triage.
Usage:
api.pagetriagestats.namespace(value).perform # returns string with raw output
# or
api.pagetriagestats.namespace(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
-
#namespace(value) ⇒ self
What namespace to pull stats from.
-
#showdeleted ⇒ self
Whether to include "proposed for deleted".
-
#showredirs ⇒ self
Whether to include redirects.
-
#showreviewed ⇒ self
Whether to include reviewed.
-
#showunreviewed ⇒ self
Whether to include unreviewed.
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
#namespace(value) ⇒ self
What namespace to pull stats from.
26 27 28 |
# File 'lib/mediawiktory/wikipedia/actions/pagetriagestats.rb', line 26 def namespace(value) merge(namespace: value.to_s) end |
#showdeleted ⇒ self
Whether to include "proposed for deleted".
54 55 56 |
# File 'lib/mediawiktory/wikipedia/actions/pagetriagestats.rb', line 54 def showdeleted() merge(showdeleted: 'true') end |
#showredirs ⇒ self
Whether to include redirects.
33 34 35 |
# File 'lib/mediawiktory/wikipedia/actions/pagetriagestats.rb', line 33 def showredirs() merge(showredirs: 'true') end |
#showreviewed ⇒ self
Whether to include reviewed.
40 41 42 |
# File 'lib/mediawiktory/wikipedia/actions/pagetriagestats.rb', line 40 def showreviewed() merge(showreviewed: 'true') end |
#showunreviewed ⇒ self
Whether to include unreviewed.
47 48 49 |
# File 'lib/mediawiktory/wikipedia/actions/pagetriagestats.rb', line 47 def showunreviewed() merge(showunreviewed: 'true') end |