Exception: Goodcheck::ImportLoader::HTTPGetError

Inherits:
Error
  • Object
show all
Defined in:
lib/goodcheck/import_loader.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(res) ⇒ HTTPGetError

Returns a new instance of HTTPGetError.



24
25
26
27
# File 'lib/goodcheck/import_loader.rb', line 24

def initialize(res)
  super("HTTP GET #{res.uri} => #{res.code} #{res.message}")
  @response = res
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



22
23
24
# File 'lib/goodcheck/import_loader.rb', line 22

def response
  @response
end