class AWS::S3::Owner
Entities in S3 have an associated owner (the person who created them). The owner is a canonical representation of an entity in the S3 system. It has an id
and a display_name
.
These attributes can be used when specifying a ACL::Grantee
for an ACL::Grant
.
You can retrieve the owner of the current account by calling Owner.current
.
Public Class Methods
Source
# File lib/aws/s3/owner.rb 15 def current 16 response = Service.get('/') 17 new(response.parsed['owner']) if response.parsed['owner'] 18 end
The owner of the current account.
Public Instance Methods
Source
# File lib/aws/s3/owner.rb 30 def hash #:nodoc 31 [id, display_name].join.hash 32 end
Private Instance Methods
Source
# File lib/aws/s3/owner.rb 35 def proxiable_attribute?(name) 36 valid_attributes.include?(name) 37 end
Source
# File lib/aws/s3/owner.rb 39 def valid_attributes 40 %w(id display_name) 41 end