Class: SdbDal::S3::ListAllMyBucketsResponse

Inherits:
Response
  • Object
show all
Defined in:
lib/sdb_dal/s3.rb

Instance Attribute Summary collapse

Attributes inherited from Response

#http_response

Instance Method Summary collapse

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

#entriesObject (readonly)

Returns the value of attribute entries.



581
582
583
# File 'lib/sdb_dal/s3.rb', line 581

def entries
  @entries
end