Sha256: f4efa986cc3241f174b32fe22078e265d9a4a2922c1e8cce320e61ab29c2ed18
Contents?: true
Size: 600 Bytes
Versions: 1
Compression:
Stored size: 600 Bytes
Contents
module IqSMS class Response attr_reader :original_response, :hash, :status def initialize(original_response) @original_response = original_response @hash = if @original_response.body.present? puts "@original_response.body = #{@original_response.body.inspect}" puts "@original_response.body = #{@original_response.body.to_s}" JSON.parse(@original_response.body.to_s) else {} end @hash = IqSMS::Utils.deeply_with_indifferent_access(@hash) @status = RequestStatus.new(@hash[:status], @hash[:description]) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
iqsms-0.2.2 | lib/iqsms/response.rb |