Class: S33r::S3User
- Inherits:
-
Object
- Object
- S33r::S3User
- Defined in:
- lib/s33r/bucket_listing.rb
Instance Attribute Summary collapse
-
#display_name ⇒ Object
Returns the value of attribute display_name.
-
#id ⇒ Object
Returns the value of attribute id.
Instance Method Summary collapse
-
#initialize(owner_xml_doc) ⇒ S3User
constructor
owner_xml_doc
: XML::Document instance, representing an <Owner> node from inside a ListBucketResult <Contents> element (see docs.amazonwebservices.com/AmazonS3/2006-03-01/).
Constructor Details
#initialize(owner_xml_doc) ⇒ S3User
owner_xml_doc
: XML::Document instance, representing an <Owner> node from inside a ListBucketResult <Contents> element (see docs.amazonwebservices.com/AmazonS3/2006-03-01/).
145 146 147 148 |
# File 'lib/s33r/bucket_listing.rb', line 145 def initialize(owner_xml_doc) @id = owner_xml_doc.xget('//ID') @display_name = owner_xml_doc.xget('//DisplayName') end |
Instance Attribute Details
#display_name ⇒ Object
Returns the value of attribute display_name.
141 142 143 |
# File 'lib/s33r/bucket_listing.rb', line 141 def display_name @display_name end |
#id ⇒ Object
Returns the value of attribute id.
141 142 143 |
# File 'lib/s33r/bucket_listing.rb', line 141 def id @id end |