Sha256: 1d5e404a8c515da9d5a228c571f92a9ba4d5c9d9233551006df667971e61b8a3
Contents?: true
Size: 495 Bytes
Versions: 8
Compression:
Stored size: 495 Bytes
Contents
# frozen_string_literal: true module Gupshup class GupshupResponse attr_accessor :status_code, :body # @deprecated Use 'Gupshup::Response' instead. def initialize(status_code, body) warn "'Gupshup::GupshupResponse' has been deprecated. Use 'Gupshup::Response' instead." response = Gupshup::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
8 entries across 8 versions & 1 rubygems