Class: Aws::S3Interface::S3LoggingParser

Inherits:
AwsParser
  • Object
show all
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

#result, #xml_lib, #xmlpath

Instance Method Summary collapse

Methods inherited from AwsParser

#initialize, #method_missing, #parse, #tag_end, #tag_start, #tagstart, #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

#resetObject



1315
1316
1317
1318
# File 'lib/s3/s3_interface.rb', line 1315

def reset
  @result          = {:enabled => false, :targetbucket => '', :targetprefix => ''}
  @current_grantee = {}
end

#tagend(name) ⇒ Object



1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
# File 'lib/s3/s3_interface.rb', line 1320

def tagend(name)
  case name
    # service info
    when 'TargetBucket'
      if @xmlpath == 'BucketLoggingStatus/LoggingEnabled'
        @result[:targetbucket] = @text
        @result[:enabled]      = true
      end
    when 'TargetPrefix'
      if @xmlpath == 'BucketLoggingStatus/LoggingEnabled'
        @result[:targetprefix] = @text
        @result[:enabled]      = true
      end
  end
end