Sha256: ab72c34f3b1913c9bdb6751da0b28a2539b8e182fa69b20b13ef5d8dffe5a48b

Contents?: true

Size: 567 Bytes

Versions: 32

Compression:

Stored size: 567 Bytes

Contents

module Fog
  module Parsers
    module DNS
      module Slicehost

        class GetZones < Fog::Parsers::Base

          def reset
            @zone = {}
            @response = { 'zones' => [] }
          end

          def end_element(name)
            case name
            when 'ttl', 'id'
              @zone[name] = value.to_i
            when 'active', 'origin'
              @zone[name] = value
            when 'zone'
              @response['zones'] << @zone
              @zone = {}
            end
          end

        end

      end
    end
  end
end

Version data entries

32 entries across 32 versions & 8 rubygems

Version Path
brightbox-cli-0.18.1 lib/brightbox-cli/vendor/fog/lib/fog/slicehost/parsers/dns/get_zones.rb
michiels-fog-1.3.1 lib/fog/slicehost/parsers/dns/get_zones.rb
ftl-0.2.0 vendor/bundle/gems/fog-1.3.1/lib/fog/slicehost/parsers/dns/get_zones.rb
brightbox-cli-0.18.0 lib/brightbox-cli/vendor/fog/lib/fog/slicehost/parsers/dns/get_zones.rb
fog-1.3.1 lib/fog/slicehost/parsers/dns/get_zones.rb
fog-1.3.0 lib/fog/slicehost/parsers/dns/get_zones.rb
brightbox-cli-0.17.5 lib/brightbox-cli/vendor/fog/lib/fog/slicehost/parsers/dns/get_zones.rb
fog-1.2.0 lib/fog/slicehost/parsers/dns/get_zones.rb
ktheory-fog-1.1.2 lib/fog/slicehost/parsers/dns/get_zones.rb
brightbox-cli-0.17.4 lib/brightbox-cli/vendor/fog/lib/fog/slicehost/parsers/dns/get_zones.rb
brightbox-cli-0.17.3 lib/brightbox-cli/vendor/fog/lib/fog/slicehost/parsers/dns/get_zones.rb
brightbox-cli-0.17.2 lib/brightbox-cli/vendor/fog/lib/fog/slicehost/parsers/dns/get_zones.rb
brightbox-cli-0.17.1 lib/brightbox-cli/vendor/fog/lib/fog/slicehost/parsers/dns/get_zones.rb
brightbox-cli-0.17.0 lib/brightbox-cli/vendor/fog/lib/fog/slicehost/parsers/dns/get_zones.rb
fog-1.1.2 lib/fog/slicehost/parsers/dns/get_zones.rb
fog_tractical-1.1.4 lib/fog/slicehost/parsers/dns/get_zones.rb
fog_tractical-1.1.3 lib/fog/slicehost/parsers/dns/get_zones.rb
brightbox-cli-0.16.0 lib/brightbox-cli/vendor/fog/lib/fog/slicehost/parsers/dns/get_zones.rb
fog-1.1.1 lib/fog/slicehost/parsers/dns/get_zones.rb
fog-1.1.0 lib/fog/slicehost/parsers/dns/get_zones.rb