class ActionCost::RecordCacheParser
Constants
- VALID_OPERATIONS
Attributes
invalid[R]
join_tables[R]
operation[R]
table_name[R]
Public Class Methods
new(table_name)
click to toggle source
# File lib/action_cost/record_cache_parser.rb, line 7 def initialize(table_name) @invalid = false @table_name = table_name @join_tables = [] @operation = 'select' end
Public Instance Methods
log()
click to toggle source
# File lib/action_cost/record_cache_parser.rb, line 18 def log if @invalid Rails.logger.debug "action_cost: record cache non parsable query" else Rails.logger.debug "action_cost: record_cache operation=#{@operation} table_name=#{@table_name} " + "join_tables=#{@join_tables.inspect}" end end
parse()
click to toggle source
# File lib/action_cost/record_cache_parser.rb, line 14 def parse return true end