Sha256: 0c2caad125ce4b6970ef6e6c52f4f2ff4d7e9c05d7f4dc6c923db21d63841d84
Contents?: true
Size: 326 Bytes
Versions: 1
Compression:
Stored size: 326 Bytes
Contents
module BloomRemitClient class BaseResponse include Virtus.model attribute :raw_response, Object private def data json = JSON.parse(raw_response.body) if json.is_a?(Array) json.map(&:with_indifferent_access) else json.with_indifferent_access end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bloom_remit_client-0.2.0 | lib/bloom_remit_client/responses/base_response.rb |