class Dag::Client::API::ObjectsResult

Public Instance Methods

full_objects() click to toggle source
# File lib/dag/client/api/storage_result.rb, line 28
def full_objects
  REXML::XPath.match(@xml_doc, "/ListBucketResult/Contents").map{|m|
    XmlSimple.xml_in(m.to_s)
  }
end
marker() click to toggle source
# File lib/dag/client/api/storage_result.rb, line 38
def marker
  REXML::XPath.match(@xml_doc, "/ListBucketResult/Marker").map { |b| b.text }.first
end
max() click to toggle source
# File lib/dag/client/api/storage_result.rb, line 46
def max
  REXML::XPath.match(@xml_doc, "/ListBucketResult/MaxKeys").map { |b| b.text }.first.to_i
end
next_marker() click to toggle source
# File lib/dag/client/api/storage_result.rb, line 42
def next_marker
  REXML::XPath.match(@xml_doc, "/ListBucketResult/NextMarker").map { |b| b.text }.first
end
objects() click to toggle source
# File lib/dag/client/api/storage_result.rb, line 24
def objects
  REXML::XPath.match(@xml_doc, "/ListBucketResult/Contents/Key").map { |b| b.text }
end
truncated?() click to toggle source
# File lib/dag/client/api/storage_result.rb, line 34
def truncated?
  REXML::XPath.match(@xml_doc, "/ListBucketResult/IsTruncated").map { |b| b.text }.first == 'true'
end