Method: Breathe::Client#response
- Defined in:
- lib/breathe/client.rb
#response(method:, path:, args: {}) ⇒ Object
28 29 30 31 32 33 34 35 |
# File 'lib/breathe/client.rb', line 28 def response(method:, path:, args: {}) response = request(method: method, path: path, options: {query: args}) parsed_response = Response.new(response: response, type: path.split("/").first) if parsed_response.success? @auto_paginate ? auto_paginated_response(parsed_response) : parsed_response end end |