Sha256: 99b7f014989301a8d813af56d4532ba13895b04085b92bbc2e6714c4794506b4
Contents?: true
Size: 869 Bytes
Versions: 4
Compression:
Stored size: 869 Bytes
Contents
# frozen_string_literal: true module MediaWiktory::Wikipedia module Actions # 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. # class Jsondata < MediaWiktory::Wikipedia::Actions::Get # Title to get. By default assumes namespace to be "Data:" # # @param value [String] # @return [self] def title(value) merge(title: value.to_s) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems