class S3::Concerns::ObjectsResult
Public Class Methods
new(xml_doc)
click to toggle source
# File lib/s3/client/model/concerns/objects_result.rb, line 4 def initialize(xml_doc) @xml_doc = xml_doc end
Public Instance Methods
full_objects()
click to toggle source
# File lib/s3/client/model/concerns/objects_result.rb, line 12 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/s3/client/model/concerns/objects_result.rb, line 22 def marker REXML::XPath.match(@xml_doc, "/ListBucketResult/Marker").map { |b| b.text }.first end
max()
click to toggle source
# File lib/s3/client/model/concerns/objects_result.rb, line 30 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/s3/client/model/concerns/objects_result.rb, line 26 def next_marker REXML::XPath.match(@xml_doc, "/ListBucketResult/NextMarker").map { |b| b.text }.first end
objects()
click to toggle source
# File lib/s3/client/model/concerns/objects_result.rb, line 8 def objects REXML::XPath.match(@xml_doc, "/ListBucketResult/Contents/Key").map { |b| b.text } end
truncated?()
click to toggle source
# File lib/s3/client/model/concerns/objects_result.rb, line 18 def truncated? REXML::XPath.match(@xml_doc, "/ListBucketResult/IsTruncated").map { |b| b.text }.first == 'true' end