Class: Notifiable::Apns::Grocer::Stream
- Inherits:
-
NotifierBase
- Object
- NotifierBase
- Notifiable::Apns::Grocer::Stream
- Defined in:
- lib/notifiable/apns/grocer/stream.rb
Instance Attribute Summary collapse
-
#certificate ⇒ Object
readonly
Returns the value of attribute certificate.
-
#passphrase ⇒ Object
readonly
Returns the value of attribute passphrase.
Instance Method Summary collapse
- #close ⇒ Object
- #connection_pool_size ⇒ Object
- #connection_pool_timeout ⇒ Object
- #sandbox? ⇒ Boolean
Instance Attribute Details
#certificate ⇒ Object (readonly)
Returns the value of attribute certificate.
12 13 14 |
# File 'lib/notifiable/apns/grocer/stream.rb', line 12 def certificate @certificate end |
#passphrase ⇒ Object (readonly)
Returns the value of attribute passphrase.
12 13 14 |
# File 'lib/notifiable/apns/grocer/stream.rb', line 12 def passphrase @passphrase end |
Instance Method Details
#close ⇒ Object
26 27 28 29 30 |
# File 'lib/notifiable/apns/grocer/stream.rb', line 26 def close super @grocer_pusher = nil @grocer_feedback = nil end |
#connection_pool_size ⇒ Object
14 15 16 |
# File 'lib/notifiable/apns/grocer/stream.rb', line 14 def connection_pool_size @connection_pool_size || 10 end |
#connection_pool_timeout ⇒ Object
18 19 20 |
# File 'lib/notifiable/apns/grocer/stream.rb', line 18 def connection_pool_timeout @connection_pool_timeout || 10 end |
#sandbox? ⇒ Boolean
22 23 24 |
# File 'lib/notifiable/apns/grocer/stream.rb', line 22 def sandbox? @sandbox == "1" end |