Exception: Rpush::CertificateExpiredError
- Inherits:
-
StandardError
- Object
- StandardError
- Rpush::CertificateExpiredError
- Defined in:
- lib/rpush/daemon/errors.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.
5 6 7 8 |
# File 'lib/rpush/daemon/errors.rb', line 5 def initialize(app, time) @app = app @time = time end |
Instance Attribute Details
#app ⇒ Object (readonly)
Returns the value of attribute app.
3 4 5 |
# File 'lib/rpush/daemon/errors.rb', line 3 def app @app end |
#time ⇒ Object (readonly)
Returns the value of attribute time.
3 4 5 |
# File 'lib/rpush/daemon/errors.rb', line 3 def time @time end |
Instance Method Details
#message ⇒ Object
14 15 16 |
# File 'lib/rpush/daemon/errors.rb', line 14 def "#{app.name} certificate expired at #{time}." end |
#to_s ⇒ Object
10 11 12 |
# File 'lib/rpush/daemon/errors.rb', line 10 def to_s end |