Exception: PerfCheck::Server::ApplicationError

Inherits:
Exception
  • Object
show all
Defined in:
lib/perf_check/server.rb

Instance Method Summary collapse

Constructor Details

#initialize(resp) ⇒ ApplicationError

Returns a new instance of ApplicationError.



105
106
107
# File 'lib/perf_check/server.rb', line 105

def initialize(resp)
  @response = resp
end

Instance Method Details

#bodyObject



111
112
113
# File 'lib/perf_check/server.rb', line 111

def body
  @response.body
end

#codeObject



108
109
110
# File 'lib/perf_check/server.rb', line 108

def code
  @response.code
end