class AppDynamics::BusinessTransactions::NamedTransaction
Attributes
matchers[R]
name[R]
Public Class Methods
new(name, matchers)
click to toggle source
# File lib/app_dynamics/business_transactions.rb, line 63 def initialize(name, matchers) @name = name @matchers = matchers end
Public Instance Methods
==(other)
click to toggle source
For testing
# File lib/app_dynamics/business_transactions.rb, line 81 def ==(other) name == other.name && matchers == other.matchers end
add_matcher(matcher)
click to toggle source
# File lib/app_dynamics/business_transactions.rb, line 76 def add_matcher(matcher) @matchers << matcher end
matches?(env)
click to toggle source
# File lib/app_dynamics/business_transactions.rb, line 72 def matches?(env) @matchers.any?{|m| m.matches?(env) } end
name_for(env)
click to toggle source
# File lib/app_dynamics/business_transactions.rb, line 68 def name_for(env) name end