Exception: Rpush::Apns::CertificateExpiredError
- Inherits:
-
StandardError
- Object
- StandardError
- Rpush::Apns::CertificateExpiredError
- Defined in:
- lib/rpush/daemon/apns/certificate_expired_error.rb
Instance Attribute Summary collapse
-
#app ⇒ Object
readonly
Returns the value of attribute app.
-
#time ⇒ Object
readonly
Returns the value of attribute time.
Instance Method Summary collapse
-
#initialize(app, time) ⇒ CertificateExpiredError
constructor
A new instance of CertificateExpiredError.
- #message ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(app, time) ⇒ CertificateExpiredError
Returns a new instance of CertificateExpiredError.
6 7 8 9 |
# File 'lib/rpush/daemon/apns/certificate_expired_error.rb', line 6 def initialize(app, time) @app = app @time = time end |
Instance Attribute Details
#app ⇒ Object (readonly)
Returns the value of attribute app.
4 5 6 |
# File 'lib/rpush/daemon/apns/certificate_expired_error.rb', line 4 def app @app end |
#time ⇒ Object (readonly)
Returns the value of attribute time.
4 5 6 |
# File 'lib/rpush/daemon/apns/certificate_expired_error.rb', line 4 def time @time end |
Instance Method Details
#message ⇒ Object
15 16 17 |
# File 'lib/rpush/daemon/apns/certificate_expired_error.rb', line 15 def "#{app.name} certificate expired at #{time}." end |
#to_s ⇒ Object
11 12 13 |
# File 'lib/rpush/daemon/apns/certificate_expired_error.rb', line 11 def to_s end |