class TrackerHub::Request::Utils::Env
SimpleDelegator wrapping class for rack environment
Public Instance Methods
trackable?()
click to toggle source
Should the request tracker log the current request
@return [Boolean] true if should track the current request,
false if should not track the current request
@example
> new_env = Utils::Env.new(env) > new_env.trackable?
@api public
# File lib/tracker_hub/request/utils/env.rb, line 17 def trackable? '/assets' != self['SCRIPT_NAME'] end