Class: NotifyUser::Apns

Inherits:
Object
  • Object
show all
Defined in:
app/models/notify_user/apns.rb

Direct Known Subclasses

Houston, UrbanAirship

Constant Summary collapse

SYMBOL_NAMES_SIZE =
10
PAYLOAD_LIMIT =
255

Instance Method Summary collapse

Constructor Details

#initialize(notification, options) ⇒ Apns



6
7
8
9
# File 'app/models/notify_user/apns.rb', line 6

def initialize(notification, options)
  @notification = notification
  @options = options
end

Instance Method Details

#pushObject

Sends push notification:



12
13
14
# File 'app/models/notify_user/apns.rb', line 12

def push
  raise "Base APNS class should not be used."
end