Class: Racoon::FeedbackClient
- Defined in:
- lib/racoon/feedback_client.rb
Instance Attribute Summary
Attributes inherited from Client
Instance Method Summary collapse
-
#initialize(pem, host = 'feedback.push.apple.com', port = 2196, pass = nil) ⇒ FeedbackClient
constructor
A new instance of FeedbackClient.
- #read ⇒ Object
Methods inherited from Client
#connect!, #connected?, #disconnect!, #write
Constructor Details
#initialize(pem, host = 'feedback.push.apple.com', port = 2196, pass = nil) ⇒ FeedbackClient
Returns a new instance of FeedbackClient.
5 6 7 |
# File 'lib/racoon/feedback_client.rb', line 5 def initialize(pem, host = 'feedback.push.apple.com', port = 2196, pass = nil) @pem, @host, @port, @pass = pem, host, port, pass end |
Instance Method Details
#read ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/racoon/feedback_client.rb', line 9 def read records ||= [] while record = @ssl.read(38) records << parse_tuple(record) end records end |