Sha256: b0fc6f21e81660b3992c592fb8cce0d1e1d08f7f6f44687f32741c504b5faf59

Contents?: true

Size: 498 Bytes

Versions: 4

Compression:

Stored size: 498 Bytes

Contents

module Fog
  module Parsers
    module Bluebox
      module DNS
        class GetZone < Fog::Parsers::Base

          def reset
            @response = {}
          end

          def end_element(name)
            case name
            when 'serial', 'ttl', 'retry', 'expires', 'record-count', 'refresh', 'minimum'
              @response[name] = @value.to_i
            when 'name', 'id'
              @response[name] = @value
            end
          end
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fog-0.7.2 lib/fog/dns/parsers/bluebox/get_zone.rb
fog-0.7.1 lib/fog/dns/parsers/bluebox/get_zone.rb
fog-0.7.0 lib/fog/dns/parsers/bluebox/get_zone.rb
fog-0.6.0 lib/fog/dns/parsers/bluebox/get_zone.rb