class AppDynamics::BusinessTransactions::PathAndMethodMatcher
Attributes
methods[R]
paths[R]
Public Class Methods
new(paths, methods)
click to toggle source
# File lib/app_dynamics/business_transactions.rb, line 193 def initialize(paths, methods) @paths = paths @methods = methods end
Public Instance Methods
==(other)
click to toggle source
For testing
# File lib/app_dynamics/business_transactions.rb, line 204 def ==(other) paths == other.paths && methods == other.methods end
matches?(env)
click to toggle source
# File lib/app_dynamics/business_transactions.rb, line 198 def matches?(env) path, method = env['PATH_INFO'], env['REQUEST_METHOD'] @paths.any?{|p| p === path } && (@methods.nil? || @methods.any?{|m| m == method }) end