Class: TrackerHub::Request::Utils::Env

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/tracker_hub/request/utils/env.rb

Overview

SimpleDelegator wrapping class for rack environment

Instance Method Summary collapse

Instance Method Details

#trackable?Boolean

Should the request tracker log the current request

Examples:

> new_env = Utils::Env.new(env)
> new_env.trackable?

Returns:

  • (Boolean)

    true if should track the current request, false if should not track the current request



17
18
19
# File 'lib/tracker_hub/request/utils/env.rb', line 17

def trackable?
  '/assets' != self['SCRIPT_NAME']
end