Class: BigCommerce::ManagementAPI::ResponseError

Inherits:
Error
  • Object
show all
Defined in:
lib/big_commerce/management_api/endpoint.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data, headers) ⇒ ResponseError

Returns a new instance of ResponseError.



44
45
46
47
48
49
# File 'lib/big_commerce/management_api/endpoint.rb', line 44

def initialize(data, headers)
  @headers = ResponseHeaders.new(headers)
  @data = data

  super error_message(data)
end

Instance Attribute Details

#headersObject (readonly)

Returns the value of attribute headers.



42
43
44
# File 'lib/big_commerce/management_api/endpoint.rb', line 42

def headers
  @headers
end