Class: Prowly::Notification

Inherits:
BasicNotification show all
Defined in:
lib/prowly/notification.rb

Defined Under Namespace

Modules: Priority Classes: PriorityNotAvailable

Instance Attribute Summary collapse

Attributes inherited from BasicNotification

#apikey, #application, #description

Instance Method Summary collapse

Methods inherited from BasicNotification

#to_params

Constructor Details

#initialize(params = {}) ⇒ Notification

Returns a new instance of Notification.



63
64
65
66
67
68
69
70
71
# File 'lib/prowly/notification.rb', line 63

def initialize(params = {})
  @apikey       = (params[:apikey] || params[:apikeys]) || "fffffffffffffffffffffffffffffffffffffffff"
  @application  = params[:application]  || "Prowly"
  @event        = params[:event]        || "Prowly is working!!"
  @description  = params[:description]   || "This is the default description"
  @priority     = params[:priority]     || Priority::NORMAL
  @url          = params[:url]          || nil
  super
end

Instance Attribute Details

#eventObject

Returns the value of attribute event.



61
62
63
# File 'lib/prowly/notification.rb', line 61

def event
  @event
end

#priorityObject

Returns the value of attribute priority.



61
62
63
# File 'lib/prowly/notification.rb', line 61

def priority
  @priority
end

#providerkeyObject

Returns the value of attribute providerkey.



61
62
63
# File 'lib/prowly/notification.rb', line 61

def providerkey
  @providerkey
end

#urlObject

Returns the value of attribute url.



61
62
63
# File 'lib/prowly/notification.rb', line 61

def url
  @url
end