Class: WikidataPositionHistory::Report::Mandate

Inherits:
Abstract
  • Object
show all
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

Constituency, Position

Instance Method Summary collapse

Methods inherited from Abstract

#initialize

Constructor Details

This class inherits a constructor from WikidataPositionHistory::Report::Abstract

Instance Method Details

#template_paramsObject



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

#wikitextObject



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