Sha256: 061ee9cfa0fb30fafc815c0283e31f9ff718e2dacd813cf8359cd78d5f6875e7
Contents?: true
Size: 865 Bytes
Versions: 3
Compression:
Stored size: 865 Bytes
Contents
module Fog module Parsers module AWS module DNS class ListHostedZones < Fog::Parsers::Base def reset @hosted_zones = [] @zone = {} @response = {} end def end_element(name) case name when 'Id' @zone[name] = value.sub('/hostedzone/', '') when 'Name', 'CallerReference', 'Comment' @zone[name] = value when 'HostedZone' @hosted_zones << @zone @zone = {} when 'HostedZones' @response['HostedZones'] = @hosted_zones when 'MaxItems' @response[name] = value.to_i when 'IsTruncated', 'Marker', 'NextMarker' @response[name] = value end end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
fog-0.8.2 | lib/fog/dns/parsers/aws/list_hosted_zones.rb |
fog-0.8.1 | lib/fog/dns/parsers/aws/list_hosted_zones.rb |
fog-0.8.0 | lib/fog/dns/parsers/aws/list_hosted_zones.rb |