class MediaWiktory::Wikipedia::Actions::Graph
Access graph tag functionality.
Usage:
“`ruby api.graph.hash(value).perform # returns string with raw output # or api.graph.hash(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
hash(value)
click to toggle source
Hash value of the graph
@param value [String] @return [self]
# File lib/mediawiktory/wikipedia/actions/graph.rb, line 26 def hash(value) merge(hash: value.to_s) end
text(value)
click to toggle source
Text of the graph to be converted to JSON. Must be posted and used without title and hash parameters
@param value [String] @return [self]
# File lib/mediawiktory/wikipedia/actions/graph.rb, line 42 def text(value) merge(text: value.to_s) end
title(value)
click to toggle source
Title of the article with the graph
@param value [String] @return [self]
# File lib/mediawiktory/wikipedia/actions/graph.rb, line 34 def title(value) merge(title: value.to_s) end