Class: RAWS::S3::ACL::Email
Instance Attribute Summary collapse
-
#email ⇒ Object
Returns the value of attribute email.
Attributes inherited from Grant
Instance Method Summary collapse
-
#initialize(email, permission) ⇒ Email
constructor
A new instance of Email.
- #to_xml ⇒ Object
Constructor Details
#initialize(email, permission) ⇒ Email
Returns a new instance of Email.
55 56 57 58 |
# File 'lib/raws/s3/acl.rb', line 55 def initialize(email, ) super() @email = email end |
Instance Attribute Details
#email ⇒ Object
Returns the value of attribute email.
53 54 55 |
# File 'lib/raws/s3/acl.rb', line 53 def email @email end |
Instance Method Details
#to_xml ⇒ Object
60 61 62 63 64 65 66 67 68 69 |
# File 'lib/raws/s3/acl.rb', line 60 def to_xml '<Grant>' << '<Grantee' << ' xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"' << ' xsi:type="AmazonCustomerByEmail">' << "<EmailAddress>#{@email}</EmailAddress>" << '</Grantee>' << super << '</Grant>' end |