class Strapi::Response
The parsed response returned from the Strapi
API
Attributes
parsed_response[R]
Public Class Methods
new(faraday_response)
click to toggle source
# File lib/strapi/response.rb, line 8 def initialize(faraday_response) @parsed_response = faraday_response.body return if faraday_response.success? raise Error, error end