Class: APN::Feedback
- Inherits:
-
Object
- Object
- APN::Feedback
- Defined in:
- lib/apn/feedback.rb
Instance Method Summary collapse
- #client ⇒ Object
- #data ⇒ Object
-
#initialize(options = {}) ⇒ Feedback
constructor
A new instance of Feedback.
- #receive ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Feedback
Returns a new instance of Feedback.
12 13 14 15 16 17 18 19 20 21 |
# File 'lib/apn/feedback.rb', line 12 def initialize( = {}) [:host] ||= 'feedback.push.apple.com' [:port] ||= 2196 [:password] ||= '' @cert = [:cert] @password = [:password] @host = [:host] @port = [:port] end |
Instance Method Details
#client ⇒ Object
40 41 42 |
# File 'lib/apn/feedback.rb', line 40 def client @client ||= APN::Client.new(host: @host, port: @port, cert: APN.config.cert_file, password: APN.config.cert_password) end |