Class: SqlQuery

Inherits:
Metric show all
Defined in:
app/metrics/sql_query.rb

Instance Attribute Summary

Attributes inherited from Metric

#data

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Metric

#add_rows, #after_creation, #after_rows, #after_table, #before_creation, #before_rows, #before_table, #column_names, #create_table, form_keys, get_data_errors, #initialize, metrics, #setting, #table_options, validate_data, validates_presence_of_data

Constructor Details

This class inherits a constructor from Metric

Class Method Details

.display_nameObject



4
5
6
# File 'app/metrics/sql_query.rb', line 4

def self.display_name
  "SQL Query"
end

Instance Method Details

#resultObject



8
9
10
# File 'app/metrics/sql_query.rb', line 8

def result
  Ruport::Query.new(data).result
end