Parent

UrlBreakupTimeSample

This is the model class UrlBreakupTimeSample related to the url_breakup_samples table in the database.

Public Class Methods

get_url_breakup_sample_data(url_id) click to toggle source

This method gives the data details for the url in the table. The url data is retrived with the help of url ids. The array of url id is supplied as input to this method.

# File app/models/url_breakup_time_sample.rb, line 27
def get_url_breakup_sample_data(url_id)
  criteria = "url_sample_id in (" + (url_id.join(", ") || '') + ')'
  return select('method_name,
                sum(spent_time) as time_spent'
                ).where(criteria
                ).group(:method_name
                ).order('time_spent desc')
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.