Class: Aws::S3Interface::S3ListAllMyBucketsParser
- Defined in:
- lib/s3/s3_interface.rb
Overview
PARSERS:
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
:nodoc:
1023 1024 1025 1026 |
# File 'lib/s3/s3_interface.rb', line 1023 def reset @result = [] @owner = {} end |
#tagend(name) ⇒ Object
1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 |
# File 'lib/s3/s3_interface.rb', line 1032 def tagend(name) case name when 'ID'; @owner[:owner_id] = @text when 'DisplayName'; @owner[:owner_display_name] = @text when 'Name'; @current_bucket[:name] = @text when 'CreationDate'; @current_bucket[:creation_date] = @text when 'Bucket'; @result << @current_bucket.merge(@owner) end end |
#tagstart(name, attributes) ⇒ Object
1028 1029 1030 |
# File 'lib/s3/s3_interface.rb', line 1028 def (name, attributes) @current_bucket = {} if name == 'Bucket' end |