Class: ScoutApm::ServerIntegrations::Null

Inherits:
Object
  • Object
show all
Defined in:
lib/scout_apm/server_integrations/null.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(logger) ⇒ Null

Returns a new instance of Null.



9
10
11
# File 'lib/scout_apm/server_integrations/null.rb', line 9

def initialize(logger)
  @logger = logger
end

Instance Attribute Details

#loggerObject (readonly)

Returns the value of attribute logger.



7
8
9
# File 'lib/scout_apm/server_integrations/null.rb', line 7

def logger
  @logger
end

Instance Method Details

#forking?Boolean

Returns:

  • (Boolean)


25
26
27
# File 'lib/scout_apm/server_integrations/null.rb', line 25

def forking?
  false
end

#found?Boolean

Returns:

  • (Boolean)


29
30
31
# File 'lib/scout_apm/server_integrations/null.rb', line 29

def found?
  false
end

#installObject



21
22
23
# File 'lib/scout_apm/server_integrations/null.rb', line 21

def install
  # Nothing to do.
end

#nameObject



13
14
15
# File 'lib/scout_apm/server_integrations/null.rb', line 13

def name
  :null
end

#present?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/scout_apm/server_integrations/null.rb', line 17

def present?
  true
end