Exception: Rpush::Apns::CertificateExpiredError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/rpush/daemon/apns/certificate_expired_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

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

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

#messageObject



15
16
17
# File 'lib/rpush/daemon/apns/certificate_expired_error.rb', line 15

def message
  "#{app.name} certificate expired at #{time}."
end

#to_sObject



11
12
13
# File 'lib/rpush/daemon/apns/certificate_expired_error.rb', line 11

def to_s
  message
end