Class: Prowly::Notification
- Inherits:
-
BasicNotification
- Object
- BasicNotification
- Prowly::Notification
- Defined in:
- lib/prowly/notification.rb
Defined Under Namespace
Modules: Priority Classes: PriorityNotAvailable
Instance Attribute Summary collapse
-
#event ⇒ Object
Returns the value of attribute event.
-
#priority ⇒ Object
Returns the value of attribute priority.
-
#providerkey ⇒ Object
Returns the value of attribute providerkey.
-
#url ⇒ Object
Returns the value of attribute url.
Attributes inherited from BasicNotification
#apikey, #application, #description
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ Notification
constructor
A new instance of Notification.
Methods inherited from BasicNotification
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
#event ⇒ Object
Returns the value of attribute event.
61 62 63 |
# File 'lib/prowly/notification.rb', line 61 def event @event end |
#priority ⇒ Object
Returns the value of attribute priority.
61 62 63 |
# File 'lib/prowly/notification.rb', line 61 def priority @priority end |
#providerkey ⇒ Object
Returns the value of attribute providerkey.
61 62 63 |
# File 'lib/prowly/notification.rb', line 61 def providerkey @providerkey end |
#url ⇒ Object
Returns the value of attribute url.
61 62 63 |
# File 'lib/prowly/notification.rb', line 61 def url @url end |