Class: APNS::Notification
- Inherits:
-
Object
- Object
- APNS::Notification
- Defined in:
- lib/apns/notification.rb
Instance Attribute Summary collapse
-
#alert ⇒ Object
Returns the value of attribute alert.
-
#badge ⇒ Object
Returns the value of attribute badge.
-
#device_token ⇒ Object
Returns the value of attribute device_token.
-
#other ⇒ Object
Returns the value of attribute other.
-
#sound ⇒ Object
Returns the value of attribute sound.
Instance Method Summary collapse
Instance Attribute Details
#alert ⇒ Object
Returns the value of attribute alert.
3 4 5 |
# File 'lib/apns/notification.rb', line 3 def alert @alert end |
#badge ⇒ Object
Returns the value of attribute badge.
3 4 5 |
# File 'lib/apns/notification.rb', line 3 def badge @badge end |
#device_token ⇒ Object
Returns the value of attribute device_token.
3 4 5 |
# File 'lib/apns/notification.rb', line 3 def device_token @device_token end |
#other ⇒ Object
Returns the value of attribute other.
3 4 5 |
# File 'lib/apns/notification.rb', line 3 def other @other end |
#sound ⇒ Object
Returns the value of attribute sound.
3 4 5 |
# File 'lib/apns/notification.rb', line 3 def sound @sound end |
Instance Method Details
#send_notification ⇒ Object
5 6 7 |
# File 'lib/apns/notification.rb', line 5 def send_notification APNS.send_notification(self.device_token, ) end |