Sha256: eab85c6f1947b33888651606d5a9ff7ad4b3e73b6db2bd4497cab857d2fe439b
Contents?: true
Size: 488 Bytes
Versions: 141
Compression:
Stored size: 488 Bytes
Contents
# frozen_string_literal: true module Twilio class TwilioResponse attr_accessor :status_code, :body # @deprecated Use 'Twilio::Response' instead. def initialize(status_code, body) warn "'Twilio::TwilioResponse' has been deprecated. Use 'Twilio::Response' instead." response = Twilio::Response.new(status_code, body) @status_code = response.status_code @body = response.body end def to_s "[#{@status_code}] #{@body}" end end end
Version data entries
141 entries across 141 versions & 1 rubygems