Class: S33r::S3ACL::Group
Overview
One of the predefined S3 groups.
A group must have a type (AllUsers or AuthenticatedUsers).
Instance Attribute Summary collapse
-
#group_type ⇒ Object
Returns the value of attribute group_type.
Attributes inherited from Grantee
Instance Method Summary collapse
-
#initialize(group_type) ⇒ Group
constructor
The type of group.
Methods inherited from Grantee
#==, from_xml, #method_missing
Constructor Details
#initialize(group_type) ⇒ Group
The type of group. A key from S3_GROUP_TYPES to one of the pre-defined Amazon group types.
327 328 329 330 331 332 333 |
# File 'lib/s33r/s3_acl.rb', line 327 def initialize(group_type) unless S3_GROUP_TYPES.has_key?(group_type) raise InvalidS3GroupType, 'No such group type #{group_type}' end @group_type = S3_GROUP_TYPES[group_type] @grantee_type = GRANTEE_TYPES[:group] end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class S33r::S3ACL::Grantee
Instance Attribute Details
#group_type ⇒ Object
Returns the value of attribute group_type.
323 324 325 |
# File 'lib/s33r/s3_acl.rb', line 323 def group_type @group_type end |