Class: ScoutScout::Alert

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#serverScoutScout::Server

The Scout server that generated this alert

Returns:



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

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

Instance Method Details

#pluginScoutScout::Plugin

The Scout plugin that generated this alert

Returns:



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

def plugin
  server.plugin(plugin_id)
end