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



54
55
56
# File 'lib/tcell_agent/rails/routes.rb', line 54

def grape_routes
  @route.app.app.routes
end

#report?Boolean

Returns:

  • (Boolean)


46
47
48
# File 'lib/tcell_agent/rails/routes.rb', line 46

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

#route_methodsObject



50
51
52
# File 'lib/tcell_agent/rails/routes.rb', line 50

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