Class: S3::ListAllMyBucketsResponse

Inherits:
Response
  • Object
show all
Defined in:
lib/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.



700
701
702
703
704
705
706
707
708
709
# File 'lib/S3.rb', line 700

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.



699
700
701
# File 'lib/S3.rb', line 699

def entries
  @entries
end