class HeimdallApm::UriMatcher
Public Class Methods
new(prefixes)
click to toggle source
# File lib/heimdall_apm/uri_matcher.rb, line 3 def initialize(prefixes) @prefixes = Array(prefixes) end
Public Instance Methods
match?(uri)
click to toggle source
# File lib/heimdall_apm/uri_matcher.rb, line 7 def match?(uri) @prefixes.empty? ? false : uri.start_with?(*@prefixes) end