Sha256: d27182c9d5630f9f5c235b4a7d0498697f3828a505bab22bcc0692d3ec017a14

Contents?: true

Size: 489 Bytes

Versions: 13

Compression:

Stored size: 489 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', 'ttl', 'id'
              @response[name] = value.to_i
            when 'record-type', 'name', 'data', 'active', 'aux'
              @response[name] = value
            end
          end

        end

      end
    end
  end
end

Version data entries

13 entries across 13 versions & 4 rubygems

Version Path
brightbox-cli-0.16.0 lib/brightbox-cli/vendor/fog/lib/fog/slicehost/parsers/dns/create_record.rb
brightbox-cli-0.15.0 lib/brightbox-cli/vendor/fog/lib/fog/slicehost/parsers/dns/create_record.rb
tag-fog-1.0.1 lib/fog/slicehost/parsers/dns/create_record.rb
brightbox-cli-0.14.1 lib/brightbox-cli/vendor/fog/lib/fog/slicehost/parsers/dns/create_record.rb
brightbox-cli-0.14.0 lib/brightbox-cli/vendor/fog/lib/fog/slicehost/parsers/dns/create_record.rb
fog-1.0.0 lib/fog/slicehost/parsers/dns/create_record.rb
brightbox-cli-0.13.1 lib/brightbox-cli/vendor/fog/lib/fog/dns/parsers/slicehost/create_record.rb
brightbox-cli-0.13.0 lib/brightbox-cli/vendor/fog/lib/fog/dns/parsers/slicehost/create_record.rb
fog-0.11.0 lib/fog/dns/parsers/slicehost/create_record.rb
fog-0.10.0 lib/fog/dns/parsers/slicehost/create_record.rb
fog4encbs-0.9.0.1 lib/fog/dns/parsers/slicehost/create_record.rb
fog4encbs-0.9.0 lib/fog/dns/parsers/slicehost/create_record.rb
fog-0.9.0 lib/fog/dns/parsers/slicehost/create_record.rb