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

Version Path
twilio-ruby-5.77.0 lib/twilio-ruby/framework/twilio_response.rb
twilio-ruby-5.76.0 lib/twilio-ruby/framework/twilio_response.rb
twilio-ruby-6.0.0.pre.rc.1 lib/twilio-ruby/framework/twilio_response.rb
twilio-ruby-5.75.0 lib/twilio-ruby/framework/twilio_response.rb
twilio-ruby-5.74.5 lib/twilio-ruby/framework/twilio_response.rb
twilio-ruby-5.74.4 lib/twilio-ruby/framework/twilio_response.rb
twilio-ruby-5.74.3 lib/twilio-ruby/framework/twilio_response.rb
twilio-ruby-5.74.2 lib/twilio-ruby/framework/twilio_response.rb
twilio-ruby-5.74.1 lib/twilio-ruby/framework/twilio_response.rb
twilio-ruby-5.74.0 lib/twilio-ruby/framework/twilio_response.rb
twilio-ruby-5.73.4 lib/twilio-ruby/framework/twilio_response.rb
twilio-ruby-5.73.3 lib/twilio-ruby/framework/twilio_response.rb
twilio-ruby-5.73.2 lib/twilio-ruby/framework/twilio_response.rb
twilio-ruby-5.73.1 lib/twilio-ruby/framework/twilio_response.rb
twilio-ruby-5.73.0 lib/twilio-ruby/framework/twilio_response.rb
twilio-ruby-5.72.1 lib/twilio-ruby/framework/twilio_response.rb
twilio-ruby-5.72.0 lib/twilio-ruby/framework/twilio_response.rb
twilio-ruby-5.71.0 lib/twilio-ruby/framework/twilio_response.rb
twilio-ruby-5.70.1 lib/twilio-ruby/framework/twilio_response.rb
twilio-ruby-5.70.0 lib/twilio-ruby/framework/twilio_response.rb