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

current() click to toggle source

The owner of the current account.

   # File lib/aws/s3/owner.rb
15 def current
16   response = Service.get('/')
17   new(response.parsed['owner']) if response.parsed['owner']
18 end

Public Instance Methods

hash() click to toggle source
   # File lib/aws/s3/owner.rb
30 def hash #:nodoc
31   [id, display_name].join.hash
32 end

Private Instance Methods

proxiable_attribute?(name) click to toggle source
   # File lib/aws/s3/owner.rb
35 def proxiable_attribute?(name)
36   valid_attributes.include?(name)
37 end
valid_attributes() click to toggle source
   # File lib/aws/s3/owner.rb
39 def valid_attributes
40   %w(id display_name)
41 end