class MediaWiktory::Wikipedia::Actions::SanitizeMapdata
Performs data validation for Kartographer extension
Usage:
“`ruby api.sanitize-mapdata.title(value).perform # returns string with raw output # or api.sanitize-mapdata.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
text(value)
click to toggle source
GeoJSON to sanitize
@param value [String] @return [self]
# File lib/mediawiktory/wikipedia/actions/sanitize-mapdata.rb, line 34 def text(value) merge(text: value.to_s) end
title(value)
click to toggle source
Title of page on which this GeoJSON is supposed to be located. If no title is provided, a dummy one will be used.
@param value [String] @return [self]
# File lib/mediawiktory/wikipedia/actions/sanitize-mapdata.rb, line 26 def title(value) merge(title: value.to_s) end