Class: SelectRailsLog::Filter::BaseFilter
- Includes:
- Constants
- Defined in:
- lib/select_rails_log/filter/base_filter.rb
Direct Known Subclasses
ControllerActionFilter, DurationRangeFilter, HttpMethodFilter, HttpStatusFilter, LogsRegexpFilter, ParamsRegexpFilter, RequestIdFilter, TimeRangeFilter
Constant Summary
Constants included from Constants
Constants::ACTION, Constants::CLIENT, Constants::COMPLETED, Constants::CONTROLLER, Constants::DEBUG, Constants::DEFAULT_OUTPUT, Constants::DURATION, Constants::HTTP_METHOD, Constants::HTTP_STATUS, Constants::ID, Constants::INTERVAL, Constants::LOGS, Constants::MESSAGE, Constants::PARAMETERS, Constants::PATH, Constants::PERFORMANCE, Constants::PERFORMANCE_ACTIVE_RECORD, Constants::PERFORMANCE_ALLOCATIONS, Constants::PERFORMANCE_VIEWS, Constants::PID, Constants::RAW_LOGS, Constants::REQUEST_ID, Constants::SEVERITY, Constants::STARTED, Constants::TIME
Instance Attribute Summary
Attributes inherited from Extension
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Extension
#initialize, option_initializers, #runnable?
Constructor Details
This class inherits a constructor from SelectRailsLog::Extension
Class Method Details
.filter_type(filter_type = nil) ⇒ Object
9 10 11 12 13 14 |
# File 'lib/select_rails_log/filter/base_filter.rb', line 9 def filter_type(filter_type = nil) @filter_type ||= :line return @filter_type unless filter_type @filter_type = filter_type end |
Instance Method Details
#line_filter? ⇒ Boolean
26 27 28 |
# File 'lib/select_rails_log/filter/base_filter.rb', line 26 def line_filter? self.class.filter_type == :line end |
#request_filter? ⇒ Boolean
22 23 24 |
# File 'lib/select_rails_log/filter/base_filter.rb', line 22 def request_filter? self.class.filter_type == :request end |
#run(obj) ⇒ Object
30 31 32 |
# File 'lib/select_rails_log/filter/base_filter.rb', line 30 def run(obj) obj end |