Class: ActsAsPushable::Notification
- Inherits:
-
Object
- Object
- ActsAsPushable::Notification
- Defined in:
- lib/acts_as_pushable/notification.rb
Direct Known Subclasses
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(device:, message:, **options) ⇒ Notification
constructor
A new instance of Notification.
Constructor Details
#initialize(device:, message:, **options) ⇒ Notification
Returns a new instance of Notification.
3 4 5 6 7 |
# File 'lib/acts_as_pushable/notification.rb', line 3 def initialize(device:, message:, **) @device = device @message = @options = end |
Class Method Details
.send(device:, message:, **options) ⇒ Object
9 10 11 |
# File 'lib/acts_as_pushable/notification.rb', line 9 def self.send(device:, message:, **) self.new(device: device, message: , **).perform end |