Sha256: 7cdd7d05bbd7bca126fbdd08d02a1370903ccac7b29e594304da63c731816dac

Contents?: true

Size: 448 Bytes

Versions: 3

Compression:

Stored size: 448 Bytes

Contents

module Fog
  module Parsers
    module Slicehost
      module DNS

        class CreateZone < Fog::Parsers::Base

          def reset
            @response = {}
          end

          def end_element(name)
            case name
            when 'ttl', 'id'
              @response[name] = value.to_i
            when 'origin', 'active'
              @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/slicehost/create_zone.rb
fog-0.8.1 lib/fog/dns/parsers/slicehost/create_zone.rb
fog-0.8.0 lib/fog/dns/parsers/slicehost/create_zone.rb