Class: Aws::S3Interface::S3ListMultipartPartsParser
- Defined in:
- lib/s3/s3_interface.rb
Overview
:nodoc:
Constant Summary
Constants inherited from AwsParser
AwsParser::DEFAULT_XML_LIBRARY
Instance Attribute Summary
Attributes inherited from AwsParser
Instance Method Summary collapse
Methods inherited from AwsParser
#initialize, #method_missing, #parse, #tag_end, #tag_start, #tagtext, #text, xml_lib, xml_lib=
Constructor Details
This class inherits a constructor from Aws::AwsParser
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Aws::AwsParser
Instance Method Details
#reset ⇒ Object
1364 1365 1366 1367 1368 |
# File 'lib/s3/s3_interface.rb', line 1364 def reset @result = {} @result[:parts] = [] @current_part={} end |
#tagend(name) ⇒ Object
1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 |
# File 'lib/s3/s3_interface.rb', line 1374 def tagend(name) case name when 'PartNumber' @current_part[:part_number] = @text when 'ETag' @current_part[:etag] = @text when 'Size' @current_part[:size] = @text when 'LastModified' @current_part[:last_modified] = @text when 'Bucket' @result[:bucket] = @text when 'Key' @result[:key] = @text when 'UploadId' @result[:upload_id] = @text when 'Part' @result[:parts] << @current_part end end |
#tagstart(name, attributes) ⇒ Object
1370 1371 1372 |
# File 'lib/s3/s3_interface.rb', line 1370 def (name, attributes) @current_part={} if name=='Part' end |