Module: IonicNotification
- Defined in:
- lib/ionic_notification.rb,
lib/ionic_notification/logger.rb,
lib/ionic_notification/version.rb,
lib/ionic_notification/exceptions.rb,
lib/ionic_notification/notification.rb,
lib/ionic_notification/push_service.rb,
lib/ionic_notification/status_service.rb,
lib/ionic_notification/sent_notification.rb,
lib/generators/ionic_notification/orm_helpers.rb,
lib/ionic_notification/concerns/ionic_notificable.rb,
lib/generators/ionic_notification/model/model_generator.rb,
lib/generators/ionic_notification/install/install_generator.rb
Defined Under Namespace
Modules: Concerns, Generators
Classes: Logger, Notification, PushService, SentNotification, StatusService, WrongPayloadType, WrongTokenType
Constant Summary
collapse
- VERSION =
"0.1.0"
- @@ionic_application_id =
""
- @@ionic_api_key =
""
- @@ionic_app_name =
Rails.application.class.parent_name
- @@ionic_app_in_production =
true
- @@process_empty_messages =
false
- @@default_message =
"This was intended to be a beautiful notification. Unfortunately, you're not qualified to read it."
- @@log_level =
:debug
- @@latest_notifications =
[]
- @@notification_store_limit =
3
- @@ionic_api_url =
"https://push.ionic.io"
Class Method Summary
collapse
Class Method Details
.setup {|_self| ... } ⇒ Object
45
46
47
|
# File 'lib/ionic_notification.rb', line 45
def self.setup
yield self
end
|
.store(notification) ⇒ Object
49
50
51
52
53
54
|
# File 'lib/ionic_notification.rb', line 49
def self.store(notification)
if latest_notifications.count >= notification_store_limit
latest_notifications.shift
end
latest_notifications << notification
end
|