Module: AWS::S3::ACL::Policy::GrantListExtensions

Defined in:
lib/aws-matt/s3/acl.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#==(grants) ⇒ Object

Two grant lists are equal if they have identical grants both in terms of permission and grantee.



175
176
177
# File 'lib/aws-matt/s3/acl.rb', line 175

def ==(grants)
  size == grants.size && all? {|grant| grants.include?(grant)}
end

#delete(grant) ⇒ Object



165
166
167
168
169
170
171
172
# File 'lib/aws-matt/s3/acl.rb', line 165

def delete(grant)
  case grant
  when Symbol
    super(ACL::Grant.grant(grant))
  else
    super
  end
end

#include?(grant) ⇒ Boolean

Returns:

  • (Boolean)


156
157
158
159
160
161
162
163
# File 'lib/aws-matt/s3/acl.rb', line 156

def include?(grant)
  case grant
  when Symbol
    super(ACL::Grant.grant(grant))
  else
    super
  end
end