Exception: OpenURI::HTTPError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/open-uri.rb

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (HTTPError) initialize(message, io)

A new instance of HTTPError



282
283
284
285
# File 'lib/open-uri.rb', line 282

def initialize(message, io)
  super(message)
  @io = io
end

Instance Attribute Details

- (Object) io (readonly)

Returns the value of attribute io



286
287
288
# File 'lib/open-uri.rb', line 286

def io
  @io
end