Exception: ResponseError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/everbox_client/runner.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ ResponseError

Returns a new instance of ResponseError.



19
20
21
# File 'lib/everbox_client/runner.rb', line 19

def initialize(response)
  @response = response
end

Instance Attribute Details

#responseObject

Returns the value of attribute response.



18
19
20
# File 'lib/everbox_client/runner.rb', line 18

def response
  @response
end

Instance Method Details

#to_sObject



23
24
25
# File 'lib/everbox_client/runner.rb', line 23

def to_s
  "code=#{response.code}|body=#{response.body}"
end