class MediaWiktory::Wikipedia::Actions::Jsondata
Retrieve localized JSON data.
Usage:
“`ruby api.jsondata.title(value).perform # returns string with raw output # or api.jsondata.title(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
title(value)
click to toggle source
Title to get. By default assumes namespace to be “Data:”
@param value [String] @return [self]
# File lib/mediawiktory/wikipedia/actions/jsondata.rb, line 26 def title(value) merge(title: value.to_s) end