Class: S3::ListBucketResponse
Instance Attribute Summary collapse
-
#common_prefix_entries ⇒ Object
readonly
Returns the value of attribute common_prefix_entries.
-
#entries ⇒ Object
readonly
Returns the value of attribute entries.
-
#properties ⇒ Object
readonly
Returns the value of attribute properties.
Attributes inherited from Response
Instance Method Summary collapse
-
#initialize(response) ⇒ ListBucketResponse
constructor
A new instance of ListBucketResponse.
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_entries ⇒ Object (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 |
#entries ⇒ Object (readonly)
Returns the value of attribute entries.
677 678 679 |
# File 'lib/s3sync/S3.rb', line 677 def entries @entries end |
#properties ⇒ Object (readonly)
Returns the value of attribute properties.
676 677 678 |
# File 'lib/s3sync/S3.rb', line 676 def properties @properties end |