Exception: Frontkick::Timeout
- Inherits:
-
StandardError
- Object
- StandardError
- Frontkick::Timeout
- Defined in:
- lib/frontkick/error.rb
Instance Attribute Summary collapse
-
#command ⇒ Object
readonly
Returns the value of attribute command.
-
#killed ⇒ Object
readonly
Returns the value of attribute killed.
-
#pid ⇒ Object
readonly
Returns the value of attribute pid.
Instance Method Summary collapse
-
#initialize(pid, command, killed) ⇒ Timeout
constructor
A new instance of Timeout.
- #to_s ⇒ Object (also: #message)
Constructor Details
#initialize(pid, command, killed) ⇒ Timeout
Returns a new instance of Timeout.
11 12 13 14 15 |
# File 'lib/frontkick/error.rb', line 11 def initialize(pid, command, killed) @pid = pid @command = command @killed = killed end |
Instance Attribute Details
#command ⇒ Object (readonly)
Returns the value of attribute command.
9 10 11 |
# File 'lib/frontkick/error.rb', line 9 def command @command end |
#killed ⇒ Object (readonly)
Returns the value of attribute killed.
9 10 11 |
# File 'lib/frontkick/error.rb', line 9 def killed @killed end |
#pid ⇒ Object (readonly)
Returns the value of attribute pid.
9 10 11 |
# File 'lib/frontkick/error.rb', line 9 def pid @pid end |
Instance Method Details
#to_s ⇒ Object Also known as: message
17 18 19 |
# File 'lib/frontkick/error.rb', line 17 def to_s {pid: @pid, command: @command, killed: @killed}.to_json end |