Module: MediaWiki::Query::Lists::Log::Move

Included in:
MediaWiki::Query::Lists::Log
Defined in:
lib/mediawiki/query/lists/log/move.rb

Instance Method Summary collapse

Instance Method Details

#get_move_log(user = nil, title = nil, start = nil, stop = nil, limit = @query_limit_default) ⇒ Array<Hash>

Gets move/move logs.

Parameters:

Returns:

  • (Array<Hash>)

    The events, containing the following keys: id, title, user, comment, timestamp.

See Also:

Since:

  • 0.10.0



12
13
14
15
16
17
18
19
20
21
# File 'lib/mediawiki/query/lists/log/move.rb', line 12

def get_move_log(user = nil, title = nil, start = nil, stop = nil, limit = @query_limit_default)
  response = get_log('move/move', user, title, start, stop, limit)

  ret = []
  response['query']['logevents'].each do |log|
    ret << loghash_move(log)
  end

  ret
end

#get_move_redirect_log(user = nil, title = nil, start = nil, stop = nil, limit = @query_limit_default) ⇒ Array<Hash>

Gets move/move_redir logs for redirects.

Parameters:

Returns:

  • (Array<Hash>)

    The events, containing the following keys: id, title, user, comment, timestamp.

See Also:

Since:

  • 0.10.0



29
30
31
32
33
34
35
36
37
38
# File 'lib/mediawiki/query/lists/log/move.rb', line 29

def get_move_redirect_log(user = nil, title = nil, start = nil, stop = nil, limit = @query_limit_default)
  resp = get_log('move/move_redir', user, title, start, stop, limit)

  ret = []
  resp['query']['logevents'].each do |log|
    ret << loghash_move(log)
  end

  ret
end