Exception: Rpush::CertificateExpiredError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(app, time) ⇒ 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

#appObject (readonly)

Returns the value of attribute app


3
4
5
# File 'lib/rpush/daemon/errors.rb', line 3

def app
  @app
end

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

#messageObject


14
15
16
# File 'lib/rpush/daemon/errors.rb', line 14

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

#to_sObject


10
11
12
# File 'lib/rpush/daemon/errors.rb', line 10

def to_s
  message
end