Sha256: f6c3c9b62a37dcd66ca9cd93e014baf6d44f87c009f0bc63258375af896b97b4

Contents?: true

Size: 681 Bytes

Versions: 19

Compression:

Stored size: 681 Bytes

Contents

module Fog
  module Parsers
    module DNS
      module Slicehost

        class CreateRecord < Fog::Parsers::Base

          def reset
            @response = {}
          end

          def end_element(name)
            case name
            when 'zone_id'
              @response["zone-id"] = value.to_i
            when 'record_type'
              @response["record-type"] = value
            when 'ttl', 'id'
              @response[name] = value.to_i
            when 'value'
              @response["data"] = value
            when 'name', 'data', 'active', 'aux'
              @response[name] = value
            end
          end

        end

      end
    end
  end
end

Version data entries

19 entries across 19 versions & 6 rubygems

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