Skip to content

Statistics Controller

gustavonascimento edited this page Apr 11, 2016 · 2 revisions

Class

  • This class manipulates all the data from enterprises to make the rankings and graphics.

Methods

  • def index

  • Empty method.

  • def most_sanctioned_ranking

  • Manipulates the data of the enterprises with more sanctions.

  • def most_paymented_ranking

  • Manipulates the data of the most paid enterprises.

  • def enterprise_group_ranking

  • Aggregates the enterprises by the group it belongs

  • def payment_group_ranking

  • Aggregates the payments by the group it belongs

  • def sanction_by_state_graph

  • Manipulate data to build the graphic of sanctions by state.

  • def sanction_by_type_graph

  • Manipulate data to build the graphic of sanctions by type.

  • def total_by_state()

  • Show the total of sanctions by state.

  • def total_by_type()

  • Show the total of sanctions by it type.

Variables

Global Variables

  • @@states_list

  • List that saves all the states.

  • @@sanjana

  • List that saves all the years.

  • @@sanction_type_list

  • List that saves all the sanctions.

Clone this wiki locally