Class: SdbDal::S3::ListAllMyBucketsResponse
- Defined in:
- lib/sdb_dal/s3.rb
Instance Attribute Summary collapse
-
#entries ⇒ Object
readonly
Returns the value of attribute entries.
Attributes inherited from Response
Instance Method Summary collapse
-
#initialize(response) ⇒ ListAllMyBucketsResponse
constructor
A new instance of ListAllMyBucketsResponse.
Constructor Details
#initialize(response) ⇒ ListAllMyBucketsResponse
Returns a new instance of ListAllMyBucketsResponse.
582 583 584 585 586 587 588 589 590 591 |
# File 'lib/sdb_dal/s3.rb', line 582 def initialize(response) super(response) if response.is_a? Net::HTTPSuccess parser = ListAllMyBucketsParser.new REXML::Document.parse_stream(response.body, parser) @entries = parser.entries else @entries = [] end end |
Instance Attribute Details
#entries ⇒ Object (readonly)
Returns the value of attribute entries.
581 582 583 |
# File 'lib/sdb_dal/s3.rb', line 581 def entries @entries end |