Class: S3::ListAllMyBucketsResponse

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


650
651
652
653
654
655
656
657
658
659
# File 'lib/s3-ruby.rb', line 650

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.


649
650
651
# File 'lib/s3-ruby.rb', line 649

def entries
  @entries
end