Class: S3::ListAllMyBucketsResponse

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



703
704
705
706
707
708
709
710
711
712
# File 'lib/s3sync/S3.rb', line 703

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.



702
703
704
# File 'lib/s3sync/S3.rb', line 702

def entries
  @entries
end