Sha256: 9711605c8b251da6e80bbca422b712d71cd574b9a6665f3fc8a33f43cad690fe

Contents?: true

Size: 639 Bytes

Versions: 38

Compression:

Stored size: 639 Bytes

Contents

module Fog
  module Parsers
    module DNS
      module Zerigo
        class CreateZone < Fog::Parsers::Base
          def reset
            @response = {}
          end

          def end_element(name)
            case name
            when 'default-ttl', 'id', 'nx-ttl', 'hosts-count'
              @response[name] = value.to_i
            when 'created-at', 'custom-nameservers', 'custom-ns', 'domain', 'hostmaster', 'notes', 'ns1', 'ns-type', 'slave-nameservers', 'tag-list', 'updated-at', 'hosts', 'axfr-ips', 'restrict-axfr'
              @response[name] = value
            end
          end
        end
      end
    end
  end
end

Version data entries

38 entries across 36 versions & 5 rubygems

Version Path
fog-1.29.0 lib/fog/zerigo/parsers/dns/create_zone.rb
fog-1.28.0 lib/fog/zerigo/parsers/dns/create_zone.rb
fog-1.27.0 lib/fog/zerigo/parsers/dns/create_zone.rb
fog-1.26.0 lib/fog/zerigo/parsers/dns/create_zone.rb
fog-1.25.0 lib/fog/zerigo/parsers/dns/create_zone.rb
nsidc-fog-1.24.1 lib/fog/zerigo/parsers/dns/create_zone.rb
fog-1.24.0 lib/fog/zerigo/parsers/dns/create_zone.rb
ns-fog-1.22.11 lib/fog/zerigo/parsers/dns/create_zone.rb
ns-fog-1.22.10 lib/fog/zerigo/parsers/dns/create_zone.rb
ns-fog-1.22.9 lib/fog/zerigo/parsers/dns/create_zone.rb
ns-fog-1.22.8 lib/fog/zerigo/parsers/dns/create_zone.rb
ns-fog-1.22.7 lib/fog/zerigo/parsers/dns/create_zone.rb
ns-fog-1.22.6 lib/fog/zerigo/parsers/dns/create_zone.rb
fog-1.23.0 lib/fog/zerigo/parsers/dns/create_zone.rb
ns-fog-1.22.4 lib/fog/zerigo/parsers/dns/create_zone.rb
ns-fog-1.22.3 lib/fog/zerigo/parsers/dns/create_zone.rb
ns-fog-1.22.2 lib/fog/zerigo/parsers/dns/create_zone.rb
fog-1.22.1 lib/fog/zerigo/parsers/dns/create_zone.rb