lib/reality/describers/wikidata/actions/base.rb
# Action's name on MediaWiki API (e.g. "query" for `Query` action, "parsoid-batch" for
# `ParsoidBatch` action and so on).
#
# @return [String]
Action's name on MediaWiki API .
Action ' s name on MediaWiki API .
def name
        self.class.name.split('::').last.gsub(/([a-z])([A-Z])/, '\1-\2').downcase or
          fail ArgumentError, "Can't guess action name from #{self.class.name}"
      end
def name self . class . name . split ( '::' ) . last . gsub ( / ([a-z])([A-Z]) / , '\1-\2' ) . downcase or fail ArgumentError , "Can't guess action name from #{self.class.name}" end
Action's name on MediaWiki API (e.g.
Action ' s name on MediaWiki API ( e . g .
# Query # => query # ParsoidBatch # => parsoid-batch
None
String