Sha256: 2da556095e90d856d17a8bee2f0727cf5a18e799c4e99043a7a9fde555fc25e6
Contents?: true
Size: 373 Bytes
Versions: 2
Compression:
Stored size: 373 Bytes
Contents
module Fog module Backblaze module JSONResponse attr_writer :json def raw_body @body end def json @json ||= ::JSON.parse(raw_body) end def assign_json_body! self.body = json end def josn_response? headers['Content-Type'].start_with?("application/json") end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fog-backblaze-0.2.0 | lib/fog/backblaze/json_response.rb |
fog-backblaze-0.1.2 | lib/fog/backblaze/json_response.rb |