Class: AWS::S3::Bucket::Response

Inherits:
AWS::S3::Base::Response show all
Defined in:
lib/aws/s3/response.rb

Instance Attribute Summary

Attributes inherited from AWS::S3::Base::Response

#body, #parsed, #response

Instance Method Summary collapse

Methods inherited from AWS::S3::Base::Response

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

Constructor Details

This class inherits a constructor from AWS::S3::Base::Response

Instance Method Details

#bucketObject



67
68
69
70
71
72
73
74
75
# File 'lib/aws/s3/response.rb', line 67

def bucket
  if ! parsed['list_bucket_response'].nil?
    return parsed['list_bucket_response']
  elsif ! parsed['list_bucket_result'].nil?
    return parsed['list_bucket_result']
  else
    return parsed
  end
end