Class: S3::ListBucketResponse

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

Instance Attribute Summary collapse

Attributes inherited from Response

#http_response

Instance Method Summary collapse

Methods inherited from Response

#message

Constructor Details

#initialize(response) ⇒ ListBucketResponse

Returns a new instance of ListBucketResponse.



823
824
825
826
827
828
829
830
831
832
833
834
# File 'lib/S3.rb', line 823

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.



821
822
823
# File 'lib/S3.rb', line 821

def common_prefix_entries
  @common_prefix_entries
end

#entriesObject (readonly)

Returns the value of attribute entries.



820
821
822
# File 'lib/S3.rb', line 820

def entries
  @entries
end

#propertiesObject (readonly)

Returns the value of attribute properties.



819
820
821
# File 'lib/S3.rb', line 819

def properties
  @properties
end