Exception: Frontkick::Timeout

Inherits:
StandardError
  • Object
show all
Defined in:
lib/frontkick/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#commandObject (readonly)

Returns the value of attribute command.



9
10
11
# File 'lib/frontkick/error.rb', line 9

def command
  @command
end

#killedObject (readonly)

Returns the value of attribute killed.



9
10
11
# File 'lib/frontkick/error.rb', line 9

def killed
  @killed
end

#pidObject (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_sObject 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