Class: Dag::Client::API::BucketsResult

Inherits:
StorageResult show all
Defined in:
lib/dag/client/api/storage_result.rb

Instance Method Summary collapse

Methods inherited from StorageResult

#initialize

Constructor Details

This class inherits a constructor from Dag::Client::API::StorageResult

Instance Method Details

#bucketsObject



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_nameObject



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

#owner_idObject



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