Class: APNS::Notification

Inherits:
Object
  • Object
show all
Defined in:
lib/apns/notification.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#alertObject

Returns the value of attribute alert.



3
4
5
# File 'lib/apns/notification.rb', line 3

def alert
  @alert
end

#badgeObject

Returns the value of attribute badge.



3
4
5
# File 'lib/apns/notification.rb', line 3

def badge
  @badge
end

#device_tokenObject

Returns the value of attribute device_token.



3
4
5
# File 'lib/apns/notification.rb', line 3

def device_token
  @device_token
end

#otherObject

Returns the value of attribute other.



3
4
5
# File 'lib/apns/notification.rb', line 3

def other
  @other
end

#soundObject

Returns the value of attribute sound.



3
4
5
# File 'lib/apns/notification.rb', line 3

def sound
  @sound
end

Instance Method Details

#send_notificationObject



5
6
7
# File 'lib/apns/notification.rb', line 5

def send_notification
  APNS.send_notification(self.device_token, )
end