Class: Aws::AcfInterface::AcfDistributionConfigParser

Inherits:
Aws::AwsParser show all
Defined in:
lib/acf/acf_interface.rb

Overview

:nodoc:

Constant Summary

Constants inherited from Aws::AwsParser

Aws::AwsParser::DEFAULT_XML_LIBRARY

Instance Attribute Summary

Attributes inherited from Aws::AwsParser

#result, #xml_lib, #xmlpath

Instance Method Summary collapse

Methods inherited from Aws::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



407
408
409
# File 'lib/acf/acf_interface.rb', line 407

def reset
  @result = {:cnames => []}
end

#tagend(name) ⇒ Object



411
412
413
414
415
416
417
418
419
420
421
422
423
424
# File 'lib/acf/acf_interface.rb', line 411

def tagend(name)
  case name
    when 'Origin' then
      @result[:origin] = @text
    when 'CallerReference' then
      @result[:caller_reference] = @text
    when 'Comment' then
      @result[:comment] = AcfInterface::unescape(@text)
    when 'Enabled' then
      @result[:enabled] = @text == 'true' ? true : false
    when 'CNAME' then
      @result[:cnames] << @text
  end
end