Class: RightAws::Route53Interface::GetHostedZoneParser

Inherits:
RightAws::RightAWSParser show all
Defined in:
lib/route_53/right_route_53_interface.rb

Overview

:nodoc:

Constant Summary

Constants inherited from RightAws::RightAWSParser

RightAws::RightAWSParser::DEFAULT_XML_LIBRARY

Instance Attribute Summary

Attributes inherited from RightAws::RightAWSParser

#full_tag_name, #result, #tag, #xml_lib, #xmlpath

Instance Method Summary collapse

Methods inherited from RightAws::RightAWSParser

#initialize, #method_missing, #parse, #tag_end, #tag_start, #tagstart, #tagtext, #text, xml_lib, xml_lib=

Constructor Details

This class inherits a constructor from RightAws::RightAWSParser

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class RightAws::RightAWSParser

Instance Method Details

#resetObject



575
576
577
# File 'lib/route_53/right_route_53_interface.rb', line 575

def reset
  @result = {}
end

#tagend(name) ⇒ Object



578
579
580
581
582
583
584
585
586
587
588
589
# File 'lib/route_53/right_route_53_interface.rb', line 578

def tagend(name)
  case full_tag_name
  when %r{/HostedZone/Id}                         then  @result[:aws_id]                             = @text
  when %r{/HostedZone/Name}                       then  @result[:name]                               = @text
  when %r{/HostedZone/CallerReference}            then  @result[:caller_reference]                   = @text
  when %r{/Config/Comment$}                       then (@result[:config] ||= {})[:comment]           = AwsUtils::xml_unescape(@text)
  when %r{/ChangeInfo/Id$}                        then (@result[:change_info] ||= {})[:aws_id]       = @text
  when %r{/ChangeInfo/Status$}                    then (@result[:change_info] ||= {})[:status]       = @text
  when %r{/ChangeInfo/SubmittedAt$}               then (@result[:change_info] ||= {})[:submitted_at] = @text
  when %r{/DelegationSet/NameServers/NameServer$} then (@result[:name_servers] ||= [])              << @text
  end
end