Class: WikidataPositionHistory::Report::Mandate
- Defined in:
- lib/wikidata_position_history/report/mandate.rb
Overview
base report where each row is one person holding an office for a period
Direct Known Subclasses
Instance Method Summary collapse
Methods inherited from Abstract
Constructor Details
This class inherits a constructor from WikidataPositionHistory::Report::Abstract
Instance Method Details
#template_params ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/wikidata_position_history/report/mandate.rb', line 13 def template_params { metadata: , table_rows: table_rows, sparql_url: sparql.wdqs_url, } end |
#wikitext ⇒ Object
7 8 9 10 11 |
# File 'lib/wikidata_position_history/report/mandate.rb', line 7 def wikitext return no_items_output if mandates.empty? ReportTemplate.new(template_params).output end |