Class: TCellAgent::Instrumentation::Rails::TCellRoute5

Inherits:
TCellRoute
  • Object
show all
Defined in:
lib/tcell_agent/rails/routes.rb

Instance Attribute Summary

Attributes inherited from TCellRoute

#route_destination, #route_id, #route_path, #route_path_raw

Instance Method Summary collapse

Methods inherited from TCellRoute

#grape_route?, #initialize

Constructor Details

This class inherits a constructor from TCellAgent::Instrumentation::Rails::TCellRoute

Instance Method Details

#grape_routesObject



52
53
54
# File 'lib/tcell_agent/rails/routes.rb', line 52

def grape_routes
  @route.app.app.routes
end

#report?Boolean

Returns:

  • (Boolean)


44
45
46
# File 'lib/tcell_agent/rails/routes.rb', line 44

def report?
  TCellAgent::Utils::Strings.present?(@route.verb) || grape_route?
end

#route_methodsObject



48
49
50
# File 'lib/tcell_agent/rails/routes.rb', line 48

def route_methods
  (@route.verb || '').split('|')
end