Sha256: e437216c77414e63a5b8f57bc3e7126679884b2072dd1516bb46916c0820e16a

Contents?: true

Size: 1.02 KB

Versions: 4

Compression:

Stored size: 1.02 KB

Contents

# frozen_string_literal: true

module MediaWiktory::Wikipedia
  module Modules
    # Fetch the translation statistics for the given user.
    #
    # The "submodule" (MediaWiki API term) is included in action after setting some param, providing
    # additional tweaking for this param. Example (for {MediaWiktory::Wikipedia::Actions::Query} and
    # its submodules):
    #
    # ```ruby
    # api.query             # returns Actions::Query
    #    .prop(:revisions)  # adds prop=revisions to action URL, and includes Modules::Revisions into action
    #    .limit(10)         # method of Modules::Revisions, adds rvlimit=10 to URL
    # ```
    #
    # All submodule's parameters are documented as its public methods, see below.
    #
    module Cxtranslatorstats

      # The translator's user name. This parameter is optional. If not passed, the currently logged-in user will be used.
      #
      # @param value [String]
      # @return [self]
      def translator(value)
        merge(translator: value.to_s)
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mediawiktory-0.1.3 lib/mediawiktory/wikipedia/modules/cxtranslatorstats.rb
mediawiktory-0.1.2 lib/mediawiktory/wikipedia/modules/cxtranslatorstats.rb
mediawiktory-0.1.1 lib/mediawiktory/wikipedia/modules/cxtranslatorstats.rb
mediawiktory-0.1.0 lib/mediawiktory/wikipedia/modules/cxtranslatorstats.rb