Method: Timber::Events::SQLQuery#initialize
- Defined in:
- lib/timber/events/sql_query.rb
#initialize(attributes) ⇒ SQLQuery
Returns a new instance of SQLQuery.
10 11 12 13 14 |
# File 'lib/timber/events/sql_query.rb', line 10 def initialize(attributes) @sql = attributes[:sql] || raise(ArgumentError.new(":sql is required")) @time_ms = attributes[:time_ms] || raise(ArgumentError.new(":time_ms is required")) @message = attributes[:message] || raise(ArgumentError.new(":message is required")) end |