Method: RailsPerformance::DataSource#initialize
- Defined in:
- lib/rails_performance/data_source.rb
#initialize(q: {}, type:, klass:) ⇒ DataSource
5 6 7 8 9 10 11 12 |
# File 'lib/rails_performance/data_source.rb', line 5 def initialize(q: {}, type:, klass:) @klass = klass @type = type q[:on] ||= Date.today @q = q #puts " [DataSource Q] --> #{@q.inspect}\n\n" end |