Class: Prowler::DelayedJob

Inherits:
Object
  • Object
show all
Defined in:
lib/prowler.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize {|_self| ... } ⇒ DelayedJob

:nodoc:

Yields:

  • (_self)

Yield Parameters:



82
83
84
# File 'lib/prowler.rb', line 82

def initialize #:nodoc:
  yield self if block_given?
end

Instance Attribute Details

#api_keyObject

Returns the value of attribute api_key.



79
80
81
# File 'lib/prowler.rb', line 79

def api_key
  @api_key
end

#applicationObject

Returns the value of attribute application.



79
80
81
# File 'lib/prowler.rb', line 79

def application
  @application
end

#eventObject

Returns the value of attribute event.



80
81
82
# File 'lib/prowler.rb', line 80

def event
  @event
end

#messageObject

Returns the value of attribute message.



80
81
82
# File 'lib/prowler.rb', line 80

def message
  @message
end

#priorityObject

Returns the value of attribute priority.



80
81
82
# File 'lib/prowler.rb', line 80

def priority
  @priority
end

#provider_keyObject

Returns the value of attribute provider_key.



79
80
81
# File 'lib/prowler.rb', line 79

def provider_key
  @provider_key
end

Instance Method Details

#performObject

Send notification



87
88
89
90
# File 'lib/prowler.rb', line 87

def perform
  prowler = Prowler.new(api_key, application, provider_key)
  prowler.notify(event, message, priority, false)
end