Skip to content

Commit

Permalink
Add attr_reads for response data
Browse files Browse the repository at this point in the history
  • Loading branch information
dhughes committed Jan 23, 2021
1 parent e19b5b2 commit 30be13a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/MailchimpMarketing/api_error.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ module MailchimpMarketing
class ApiError < StandardError
attr_reader :status, :type, :title, :detail, :instance, :errors

attr_reader :response_headers, :response_body

# Usage examples:
# ApiError.new
# ApiError.new("message")
Expand Down

0 comments on commit 30be13a

Please sign in to comment.