Sha256: 3dc7afa9863039f056976bfd4883fd6853c5d72cdf650dae1306c548c9dcdd25

Contents?: true

Size: 248 Bytes

Versions: 2

Compression:

Stored size: 248 Bytes

Contents

module RDStation
  module ApiResponse
    def self.build(response)
      response_body = JSON.parse(response.body)
      return response_body unless response_body['errors']
      RDStation::ErrorHandler.new(response).raise_errors
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rdstation-ruby-client-1.2.1 lib/rdstation/api_response.rb
rdstation-ruby-client-1.2.0 lib/rdstation/api_response.rb