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:



541
542
543
# File 'lib/route_53/right_route_53_interface.rb', line 541

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

#tagend(name) ⇒ Object



549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
# File 'lib/route_53/right_route_53_interface.rb', line 549

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



544
545
546
547
548
# File 'lib/route_53/right_route_53_interface.rb', line 544

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