Class: ScoutApm::FrameworkIntegrations::Ruby

Inherits:
Object
  • Object
show all
Defined in:
lib/scout_apm/framework_integrations/ruby.rb

Instance Method Summary collapse

Instance Method Details

#application_nameObject

TODO: Fetch the name (Somehow?)



21
22
23
# File 'lib/scout_apm/framework_integrations/ruby.rb', line 21

def application_name
  "Ruby"
end

#database_engineObject

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

#envObject



25
26
27
# File 'lib/scout_apm/framework_integrations/ruby.rb', line 25

def env
  ENV['RACK_ENV'] || ENV['RAILS_ENV'] || 'development'
end

#human_nameObject



8
9
10
# File 'lib/scout_apm/framework_integrations/ruby.rb', line 8

def human_name
  "Ruby"
end

#nameObject



4
5
6
# File 'lib/scout_apm/framework_integrations/ruby.rb', line 4

def name
  :ruby
end

#present?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/scout_apm/framework_integrations/ruby.rb', line 16

def present?
  true
end

#raw_database_adapterObject



34
35
36
# File 'lib/scout_apm/framework_integrations/ruby.rb', line 34

def raw_database_adapter
  :mysql
end

#versionObject



12
13
14
# File 'lib/scout_apm/framework_integrations/ruby.rb', line 12

def version
  "Unknown"
end