Exception: PortfolioManager::HTTPResponseError

Inherits:
Error
  • Object
show all
Defined in:
lib/portfolio_manager/client.rb

Overview

HTTP Response Error

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response, *args) ⇒ HTTPResponseError

Default constructor.

Parameters:

  • response (Net::HTTPResponse)
  • args (Array<Object>)


33
34
35
36
37
# File 'lib/portfolio_manager/client.rb', line 33

def initialize(response, *args)
  super(*args)

  @response = response
end

Instance Attribute Details

#responseNet::HTTPResponse (readonly)

Returns:

  • (Net::HTTPResponse)


26
27
28
29
30
31
32
33
34
35
36
37
38
# File 'lib/portfolio_manager/client.rb', line 26

class HTTPResponseError < PortfolioManager::Error
  attr_reader :response

  # Default constructor.
  #
  # @param response [Net::HTTPResponse]
  # @param args [Array<Object>]
  def initialize(response, *args)
    super(*args)

    @response = response
  end
end