Class: Scout::Alert

Inherits:
Hashie::Mash
  • Object
show all
Defined in:
lib/scout_api/alert.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#serverScout::Server

The Scout server that generated this alert

Returns:



7
8
9
# File 'lib/scout_api/alert.rb', line 7

def server
  @server ||= Scout::Server.first(client_id)
end

Instance Method Details

#pluginScout::Plugin

The Scout plugin that generated this alert

Returns:



14
15
16
# File 'lib/scout_api/alert.rb', line 14

def plugin
  server.plugin(plugin_id)
end