Module: Grocer
- Defined in:
- lib/grocer.rb,
lib/grocer/pusher.rb,
lib/grocer/server.rb,
lib/grocer/version.rb,
lib/grocer/feedback.rb,
lib/grocer/connection.rb,
lib/grocer/ssl_server.rb,
lib/grocer/notification.rb,
lib/grocer/ssl_connection.rb,
lib/grocer/push_connection.rb,
lib/grocer/feedback_connection.rb,
lib/grocer/notification_reader.rb,
lib/grocer/passbook_notification.rb,
lib/grocer/newsstand_notification.rb,
lib/grocer/failed_delivery_attempt.rb,
lib/grocer/extensions/deep_symbolize_keys.rb,
lib/grocer/mobile_device_management_notification.rb
Defined Under Namespace
Modules: Extensions
Classes: Connection, FailedDeliveryAttempt, Feedback, FeedbackConnection, MobileDeviceManagementNotification, NewsstandNotification, Notification, NotificationReader, PassbookNotification, PushConnection, Pusher, SSLConnection, SSLServer, Server
Constant Summary
collapse
- Error =
Class.new(::StandardError)
- InvalidFormatError =
Class.new(Error)
- NoGatewayError =
Class.new(Error)
- NoPayloadError =
Class.new(Error)
- NoPortError =
Class.new(Error)
- PayloadTooLargeError =
Class.new(Error)
- CertificateExpiredError =
Module.new
- VERSION =
'0.3.4'
Class Method Summary
collapse
Class Method Details
.env ⇒ Object
20
21
22
|
# File 'lib/grocer.rb', line 20
def self.env
ENV['RAILS_ENV'] || ENV['RACK_ENV'] || 'development'
end
|
.feedback(options) ⇒ Object
.pusher(options) ⇒ Object
29
30
31
32
|
# File 'lib/grocer.rb', line 29
def self.pusher(options)
connection = PushConnection.new(options)
Pusher.new(connection)
end
|
.server(options = { }) ⇒ Object
34
35
36
37
|
# File 'lib/grocer.rb', line 34
def self.server(options = { })
ssl_server = SSLServer.new(options)
Server.new(ssl_server)
end
|