Class: RightAws::Route53Interface::ListHostedZonesParser

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

Overview


Hosted Zones

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, #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

:nodoc:



549
550
551
# File 'lib/route_53/right_route_53_interface.rb', line 549

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

#tagend(name) ⇒ Object



557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
# File 'lib/route_53/right_route_53_interface.rb', line 557

def tagend(name)
  case name
  when 'IsTruncated'     then @result[:is_truncated]   = @text == 'true'
  when 'NextMarker'      then @result[:next_marker]    = @text
  when 'MaxItems'        then @result[:max_items]      = @text.to_i
  when 'Id'              then @item[:aws_id]           = @text
  when 'Name'            then @item[:name]             = @text
  when 'CallerReference' then @item[:caller_reference] = @text
  when 'HostedZone'      then @result[:items]         << @item
  else
    case full_tag_name
    when %r{/Config/Comment$} then @item[:config][:comment] = @text
    end
  end
end

#tagstart(name, attributes) ⇒ Object



552
553
554
555
556
# File 'lib/route_53/right_route_53_interface.rb', line 552

def tagstart(name, attributes)
  case name
  when 'HostedZone' then @item = { :config => {} }
  end
end