Class: S33r::S3ACL::AmazonCustomer

Inherits:
Grantee
  • Object
show all
Defined in:
lib/s33r/s3_acl.rb

Overview

An Amazon customer for the purposes of assigning permissions.

Instance Attribute Summary collapse

Attributes inherited from Grantee

#grantee_type

Instance Method Summary collapse

Methods inherited from Grantee

#==, from_xml, #method_missing

Constructor Details

#initialize(email_address) ⇒ AmazonCustomer

Returns a new instance of AmazonCustomer.



252
253
254
255
# File 'lib/s33r/s3_acl.rb', line 252

def initialize(email_address)
  @grantee_type = GRANTEE_TYPES[:amazon_customer]
  @email_address = email_address
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class S33r::S3ACL::Grantee

Instance Attribute Details

#email_addressObject

Returns the value of attribute email_address.



250
251
252
# File 'lib/s33r/s3_acl.rb', line 250

def email_address
  @email_address
end

Instance Method Details

#to_sObject



257
258
259
# File 'lib/s33r/s3_acl.rb', line 257

def to_s
  "Amazon customer with address '#{@email_address}"
end