Class: ScoutApm::FrameworkIntegrations::Ruby
- Inherits:
-
Object
- Object
- ScoutApm::FrameworkIntegrations::Ruby
- Defined in:
- lib/scout_apm/framework_integrations/ruby.rb
Instance Method Summary collapse
-
#application_name ⇒ Object
TODO: Fetch the name (Somehow?).
-
#database_engine ⇒ Object
TODO: Figure out how to accomodate odd environments.
- #env ⇒ Object
- #human_name ⇒ Object
- #name ⇒ Object
- #present? ⇒ Boolean
- #version ⇒ Object
Instance Method Details
#application_name ⇒ Object
TODO: Fetch the name (Somehow?)
21 22 23 |
# File 'lib/scout_apm/framework_integrations/ruby.rb', line 21 def application_name "Ruby" end |
#database_engine ⇒ Object
TODO: Figure out how to accomodate odd environments
30 31 32 |
# File 'lib/scout_apm/framework_integrations/ruby.rb', line 30 def database_engine :mysql end |
#env ⇒ Object
25 26 27 |
# File 'lib/scout_apm/framework_integrations/ruby.rb', line 25 def env ENV['RACK_ENV'] || ENV['RAILS_ENV'] || 'development' end |
#human_name ⇒ Object
8 9 10 |
# File 'lib/scout_apm/framework_integrations/ruby.rb', line 8 def human_name "Ruby" end |
#name ⇒ Object
4 5 6 |
# File 'lib/scout_apm/framework_integrations/ruby.rb', line 4 def name :ruby end |
#present? ⇒ Boolean
16 17 18 |
# File 'lib/scout_apm/framework_integrations/ruby.rb', line 16 def present? true end |
#version ⇒ Object
12 13 14 |
# File 'lib/scout_apm/framework_integrations/ruby.rb', line 12 def version "Unknown" end |