Sha256: d0f55d9cd1f8f252aea5af8472de13fa0057f686bd5184bd9a96db871e6d03cd

Contents?: true

Size: 618 Bytes

Versions: 13

Compression:

Stored size: 618 Bytes

Contents

module Fog
  module Parsers
    module DNS
      module Slicehost

        class GetRecords < Fog::Parsers::Base

          def reset
            @record = {}
            @response = { 'records' => [] }
          end

          def end_element(name)
            case name
            when 'zone-id', 'ttl'
              @record[name] = value.to_i
            when 'record-type', 'name', 'data', 'active', 'aux'
              @record[name] = value
            when 'record'
              @response['records'] << @record
              @record = {}
            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/get_records.rb
brightbox-cli-0.15.0 lib/brightbox-cli/vendor/fog/lib/fog/slicehost/parsers/dns/get_records.rb
tag-fog-1.0.1 lib/fog/slicehost/parsers/dns/get_records.rb
brightbox-cli-0.14.1 lib/brightbox-cli/vendor/fog/lib/fog/slicehost/parsers/dns/get_records.rb
brightbox-cli-0.14.0 lib/brightbox-cli/vendor/fog/lib/fog/slicehost/parsers/dns/get_records.rb
fog-1.0.0 lib/fog/slicehost/parsers/dns/get_records.rb
brightbox-cli-0.13.1 lib/brightbox-cli/vendor/fog/lib/fog/dns/parsers/slicehost/get_records.rb
brightbox-cli-0.13.0 lib/brightbox-cli/vendor/fog/lib/fog/dns/parsers/slicehost/get_records.rb
fog-0.11.0 lib/fog/dns/parsers/slicehost/get_records.rb
fog-0.10.0 lib/fog/dns/parsers/slicehost/get_records.rb
fog4encbs-0.9.0.1 lib/fog/dns/parsers/slicehost/get_records.rb
fog4encbs-0.9.0 lib/fog/dns/parsers/slicehost/get_records.rb
fog-0.9.0 lib/fog/dns/parsers/slicehost/get_records.rb