Class: S3::ListBucketResponse

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) ⇒ ListBucketResponse

Returns a new instance of ListBucketResponse.



680
681
682
683
684
685
686
687
688
689
690
691
# File 'lib/s3sync/S3.rb', line 680

def initialize(response)
  super(response)
  if response.is_a? Net::HTTPSuccess
    parser = ListBucketParser.new
    REXML::Document.parse_stream(response.body, parser)
    @properties = parser.properties
    @entries = parser.entries
    @common_prefix_entries = parser.common_prefixes
  else
    @entries = []
  end
end

Instance Attribute Details

#common_prefix_entriesObject (readonly)

Returns the value of attribute common_prefix_entries.



678
679
680
# File 'lib/s3sync/S3.rb', line 678

def common_prefix_entries
  @common_prefix_entries
end

#entriesObject (readonly)

Returns the value of attribute entries.



677
678
679
# File 'lib/s3sync/S3.rb', line 677

def entries
  @entries
end

#propertiesObject (readonly)

Returns the value of attribute properties.



676
677
678
# File 'lib/s3sync/S3.rb', line 676

def properties
  @properties
end