Class: MediaWiktory::Wikipedia::Actions::Pagetriagestats

Inherits:
Get
  • Object
show all
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

Methods inherited from Get

#perform

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.

Parameters:

  • value (Integer)

Returns:

  • (self)


26
27
28
# File 'lib/mediawiktory/wikipedia/actions/pagetriagestats.rb', line 26

def namespace(value)
  merge(namespace: value.to_s)
end

#showdeletedself

Whether to include "proposed for deleted".

Returns:

  • (self)


54
55
56
# File 'lib/mediawiktory/wikipedia/actions/pagetriagestats.rb', line 54

def showdeleted()
  merge(showdeleted: 'true')
end

#showredirsself

Whether to include redirects.

Returns:

  • (self)


33
34
35
# File 'lib/mediawiktory/wikipedia/actions/pagetriagestats.rb', line 33

def showredirs()
  merge(showredirs: 'true')
end

#showreviewedself

Whether to include reviewed.

Returns:

  • (self)


40
41
42
# File 'lib/mediawiktory/wikipedia/actions/pagetriagestats.rb', line 40

def showreviewed()
  merge(showreviewed: 'true')
end

#showunreviewedself

Whether to include unreviewed.

Returns:

  • (self)


47
48
49
# File 'lib/mediawiktory/wikipedia/actions/pagetriagestats.rb', line 47

def showunreviewed()
  merge(showunreviewed: 'true')
end