class TencentCloud::Common::BaseResponse
base class of http response data
def initialize(code = 200, header = nil, data = "")
def initialize(code = 200, header = nil, data = "") @code = code @header = header @data = data end
def to_s
def to_s s = "Status: #{@code}\nHeader: \n" @header ||= {} @header.each do |k, v| s += "#{k}: #{v}\n" end s += "Data: #{@data}\n" end