Class: Notifiable::Apns::Grocer::Stream

Inherits:
NotifierBase
  • Object
show all
Defined in:
lib/notifiable/apns/grocer/stream.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#certificateObject (readonly)

Returns the value of attribute certificate.



12
13
14
# File 'lib/notifiable/apns/grocer/stream.rb', line 12

def certificate
  @certificate
end

#passphraseObject (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

#closeObject



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_sizeObject



14
15
16
# File 'lib/notifiable/apns/grocer/stream.rb', line 14

def connection_pool_size
  @connection_pool_size || 10
end

#connection_pool_timeoutObject



18
19
20
# File 'lib/notifiable/apns/grocer/stream.rb', line 18

def connection_pool_timeout
  @connection_pool_timeout || 10
end

#sandbox?Boolean

Returns:

  • (Boolean)


22
23
24
# File 'lib/notifiable/apns/grocer/stream.rb', line 22

def sandbox?
  @sandbox == "1"
end