Sha256: 19cd570fb2c2ca143fc4b65789f304694598038af336efd225fb7df1d2619f36
Contents?: true
Size: 293 Bytes
Versions: 5
Compression:
Stored size: 293 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
5 entries across 5 versions & 1 rubygems