Skip to content

Commit

Permalink
Add http_response_info attributes in response object
Browse files Browse the repository at this point in the history
  • Loading branch information
nachojorge committed Nov 19, 2024
1 parent 5c64452 commit 963f88b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/angus/remote/response/builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,13 @@ def self.build_from_definition(status_code, body, service_code_name, service_ver
fields = {}

fields[:status] = json_response['status']
fields[:status_code] = status_code
fields[:messages] = self.build_messages(json_response['messages'])
fields[:body] = body
fields[:service_code_name] = service_code_name
fields[:service_version] = service_version
fields[:operation_namespace] = operation_namespace
fields[:operation_code_name] = operation_code_name

representations_hash = self.representations_hash(representations)
glossary_terms_hash = glossary.terms_hash
Expand Down

0 comments on commit 963f88b

Please sign in to comment.