Sha256: 9e2e94dab0a5e6b6448d932bfe1e3a08a73010f989b1d143eeab70e67d32661d
Contents?: true
Size: 1004 Bytes
Versions: 4
Compression:
Stored size: 1004 Bytes
Contents
# frozen_string_literal: true require_relative './actions/base' module <%= @namespace %> # Methods of this module contains all actions that can be used on {Api}. # You use them like this: # # ```ruby # api = <%= @namespace %>::Api.new # # api.query # method of Api, returning Actions::Query # .titles('Argentina', 'Bolivia') # methods of Actions::Query... # .prop(:revisions).prop(:content) # ...to set action options # .response # # => performs action and returns Response instance # ``` # # See also: # * {Api} for starting; # * {Actions::Base} for details of working with actions; # * and {Response}. # # Note that for each MediaWiki site the main method for **data extraction** (pages, categories, # meta-information) is {#query}. # module Actions <% actions.each { |action| %><%= partial '_action_method', action %><% } %> end end Dir[File.expand_path('../{actions,modules}/*.rb', __FILE__)].each { |f| require f }
Version data entries
4 entries across 4 versions & 1 rubygems