Sha256: 2a654907996c035d9c8de6274150b5ecec7ee71f0d9ce9c6d9da0ab7d3ab4a3b
Contents?: true
Size: 253 Bytes
Versions: 2
Compression:
Stored size: 253 Bytes
Contents
module RDStation module ApiResponse def self.build(response) response_body = JSON.parse(response.body) return response_body if response.code.between?(200, 299) RDStation::ErrorHandler.new(response).raise_error end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rdstation-ruby-client-2.1.0 | lib/rdstation/api_response.rb |
rdstation-ruby-client-2.0.0 | lib/rdstation/api_response.rb |