Sha256: 255d056a9f17b645f7fb06a1c09cd04cd729b6efee5749a41a88853316daa6d9

Contents?: true

Size: 478 Bytes

Versions: 4

Compression:

Stored size: 478 Bytes

Contents

module Prowler
  class DelayedJob
    attr_accessor :api_key, :provider_key, :application
    attr_accessor :event, :message, :priority, :url

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

    # Send notification
    def perform
      prowler = Prowler.new(api_key, application, provider_key)
      prowler.notify(event, message, options)
    end

    def options #:nodoc:
      { :priority => priority, :url => url, :delayed => false }
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
prowler-1.3.1 lib/prowler/delayed_job.rb
prowler-1.3.0 lib/prowler/delayed_job.rb
prowler-1.2.1 lib/prowler/delayed_job.rb
prowler-1.2.0 lib/prowler/delayed_job.rb