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 ::current.
The owner of the current account.
# File lib/aws/s3/owner.rb, line 15 def current response = Service.get('/') new(response.parsed['owner']) if response.parsed['owner'] end
# File lib/aws/s3/owner.rb, line 30 def hash #:nodoc [id, display_name].join.hash end
# File lib/aws/s3/owner.rb, line 35 def proxiable_attribute?(name) valid_attributes.include?(name) end
# File lib/aws/s3/owner.rb, line 39 def valid_attributes %w(id display_name) end