Method: Quandl::QuandlError#initialize

Defined in:
lib/quandl/errors/quandl_error.rb

#initialize(quandl_message = nil, http_status = nil, http_body = nil, json_body = nil, http_headers = nil, quandl_error_code = nil) ⇒ QuandlError

rubocop:disable Metrics/ParameterLists



13
14
15
16
17
18
19
20
21
22
# File 'lib/quandl/errors/quandl_error.rb', line 13

def initialize(quandl_message = nil, http_status = nil, http_body = nil, json_body = nil,
               http_headers = nil, quandl_error_code = nil)
  @quandl_message = quandl_message
  @http_status = http_status
  @http_body = http_body
  @http_headers = http_headers || {}
  @json_body = json_body
  @quandl_error_code = quandl_error_code
  @message = build_message
end