Class: RightAws::Route53Interface::ListHostedZonesParser

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

Overview


Hosted Zones

Constant Summary

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

- (Object) reset

:nodoc:



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

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

- (Object) tagend(name)



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

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

- (Object) tagstart(name, attributes)



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

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