class MediaWiktory::Wikipedia::Actions::Cxconfiguration

Fetch the Content Translation configuration json for the given language pair.

Usage:

“`ruby api.cxconfiguration.from(value).perform # returns string with raw output # or api.cxconfiguration.from(value).response # returns output parsed and wrapped into Response object “`

See {Base} for generic explanation of working with MediaWiki actions and {MediaWiktory::Wikipedia::Response} for working with action responses.

All action's parameters are documented as its public methods, see below.

Public Instance Methods

from(value) click to toggle source

The source language code.

@param value [String] @return [self]

# File lib/mediawiktory/wikipedia/actions/cxconfiguration.rb, line 26
def from(value)
  merge(from: value.to_s)
end
to(value) click to toggle source

The target language code.

@param value [String] @return [self]

# File lib/mediawiktory/wikipedia/actions/cxconfiguration.rb, line 34
def to(value)
  merge(to: value.to_s)
end