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 ::current.

Public Class Methods

current() click to toggle source

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

Public Instance Methods

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