Sha256: 31b5af9ef7cc2317b3bfd7e5a0226fc73ddc5e73615dfbe04d87f6c22da419c0
Contents?: true
Size: 270 Bytes
Versions: 2
Compression:
Stored size: 270 Bytes
Contents
module Datacentred class Response attr_reader :body, :status def initialize(server_response) @body = JSON.parse server_response.body rescue nil @status = server_response.status Error.raise_unless_successful(status, @body) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
datacentred-0.1.1pre | lib/datacentred/response.rb |
datacentred-0.1.0pre | lib/datacentred/response.rb |