Class: SqlQuery
Instance Attribute Summary
Attributes inherited from Metric
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_name ⇒ Object
4 5 6 |
# File 'app/metrics/sql_query.rb', line 4 def self.display_name "SQL Query" end |
Instance Method Details
#result ⇒ Object
8 9 10 |
# File 'app/metrics/sql_query.rb', line 8 def result Ruport::Query.new(data).result end |