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.58.3 lib/twilio-ruby/framework/twilio_response.rb
twilio-ruby-5.58.2 lib/twilio-ruby/framework/twilio_response.rb
twilio-ruby-5.58.1 lib/twilio-ruby/framework/twilio_response.rb
twilio-ruby-5.58.0 lib/twilio-ruby/framework/twilio_response.rb
twilio-ruby-5.57.1 lib/twilio-ruby/framework/twilio_response.rb
twilio-ruby-5.57.0 lib/twilio-ruby/framework/twilio_response.rb
twilio-ruby-5.56.0 lib/twilio-ruby/framework/twilio_response.rb
twilio-ruby-5.55.0 lib/twilio-ruby/framework/twilio_response.rb
twilio-ruby-5.54.1 lib/twilio-ruby/framework/twilio_response.rb
twilio-ruby-5.54.0 lib/twilio-ruby/framework/twilio_response.rb
twilio-ruby-5.53.0 lib/twilio-ruby/framework/twilio_response.rb
twilio-ruby-5.52.0 lib/twilio-ruby/framework/twilio_response.rb
twilio-ruby-5.51.0 lib/twilio-ruby/framework/twilio_response.rb
twilio-ruby-5.50.0 lib/twilio-ruby/framework/twilio_response.rb
twilio-ruby-5.49.0 lib/twilio-ruby/framework/twilio_response.rb
twilio-ruby-5.48.0 lib/twilio-ruby/framework/twilio_response.rb
twilio-ruby-5.47.0 lib/twilio-ruby/framework/twilio_response.rb
twilio-ruby-5.46.1 lib/twilio-ruby/framework/twilio_response.rb
twilio-ruby-5.46.0 lib/twilio-ruby/framework/twilio_response.rb
twilio-ruby-5.45.1 lib/twilio-ruby/framework/twilio_response.rb