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.
684 685 686 687 688 689 690 691 692 693 694 695 |
# File 'lib/S3.rb', line 684 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.
682 683 684 |
# File 'lib/S3.rb', line 682 def common_prefix_entries @common_prefix_entries end |
#entries ⇒ Object (readonly)
Returns the value of attribute entries.
681 682 683 |
# File 'lib/S3.rb', line 681 def entries @entries end |
#properties ⇒ Object (readonly)
Returns the value of attribute properties.
680 681 682 |
# File 'lib/S3.rb', line 680 def properties @properties end |