Class: Aws::AcfInterface::AcfDistributionParser

Inherits:
Aws::AwsParser show all
Defined in:
lib/acf/right_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



345
346
347
# File 'lib/acf/right_acf_interface.rb', line 345

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

#tagend(name) ⇒ Object



348
349
350
351
352
353
354
355
356
357
358
359
360
# File 'lib/acf/right_acf_interface.rb', line 348

def tagend(name)
  case name
    when 'Id'               then @result[:aws_id]             = @text
    when 'Status'           then @result[:status]             = @text
    when 'LastModifiedTime' then @result[:last_modified_time] = Time.parse(@text)
    when 'DomainName'       then @result[:domain_name]        = @text
    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