Class: Aws::AcfInterface::AcfDistributionConfigParser
- Inherits:
-
Aws::AwsParser
- Object
- Aws::AwsParser
- Aws::AcfInterface::AcfDistributionConfigParser
- 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
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
#reset ⇒ Object
409 410 411 |
# File 'lib/acf/acf_interface.rb', line 409 def reset @result = {:cnames => []} end |
#tagend(name) ⇒ Object
413 414 415 416 417 418 419 420 421 422 423 424 425 426 |
# File 'lib/acf/acf_interface.rb', line 413 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 |