Class: Aliyun::OSS::Error::Response

Inherits:
Base::Response show all
Defined in:
lib/aliyun/oss/response.rb

Instance Attribute Summary

Attributes inherited from Base::Response

#body, #parsed, #response

Instance Method Summary collapse

Methods inherited from Base::Response

#[], #code, #each, #error, #headers, #initialize

Methods inherited from String

#previous, #previous!, #remove_extended, #remove_extended!, #tap, #to_header, #underscore, #valid_utf8?

Constructor Details

This class inherits a constructor from Aliyun::OSS::Base::Response

Instance Method Details

#error?Boolean

Returns:

  • (Boolean)


118
119
120
# File 'lib/aliyun/oss/response.rb', line 118

def error? 
  true
end

#inspectObject



122
123
124
# File 'lib/aliyun/oss/response.rb', line 122

def inspect
  "#<%s:0x%s %s %s: '%s'>" % [self.class.name, object_id, response.code, error.code, error.message]
end