-
Notifications
You must be signed in to change notification settings - Fork 9
Statistics Controller
- This class manipulates all the data from enterprises to make the rankings and graphics.
-
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.
-
@@states_list
-
List that saves all the states.
-
@@sanjana
-
List that saves all the years.
-
@@sanction_type_list
-
List that saves all the sanctions.