Class: Dag::Client::API::BucketsResult
Instance Method Summary
collapse
#initialize
Instance Method Details
10
11
12
|
# File 'lib/dag/client/api/storage_result.rb', line 10
def buckets
REXML::XPath.match(@xml_doc, "/ListAllMyBucketsResult/Buckets/Bucket/Name").map { |b| b.text }
end
|
#owner_display_name ⇒ Object
18
19
20
|
# File 'lib/dag/client/api/storage_result.rb', line 18
def owner_display_name
REXML::XPath.match(@xml_doc, "/ListAllMyBucketsResult/Owner/DisplayName").map { |b| b.text }.first
end
|
14
15
16
|
# File 'lib/dag/client/api/storage_result.rb', line 14
def owner_id
REXML::XPath.match(@xml_doc, "/ListAllMyBucketsResult/Owner/ID").map { |b| b.text }.first
end
|