Sha256: b45da49e6fcc328dfcf78bd743e3e33fe78fc647e4a6987371e7d433c63f7cb1
Contents?: true
Size: 297 Bytes
Versions: 24
Compression:
Stored size: 297 Bytes
Contents
module Twilio class TwilioResponse attr_accessor :status_code, :body def initialize(status_code, body) @status_code = status_code body = '{}' if !body || body.empty? @body = JSON.parse(body) end def to_s "[#{status_code}] #{body}" end end end
Version data entries
24 entries across 24 versions & 1 rubygems